ShowThreadMessageInChannelButton
Component to render a checkbox (labeled “Also send to channel”), within the Thread
component.
When this checkbox is checked by users, message sent as thread reply also gets added to parent channel’s message list.
This is the default component provided to the prop ShowThreadMessageInChannelButton
on the Channel
component.
Props
allowThreadMessagesInChannel
Display the Show thread message in channel button inside the thread MessageInput.
Type | Default |
---|---|
boolean | true |
sendThreadMessageInChannel
This value is only applicable to Thread
component. When value sendThreadMessageInChannel
is true, message gets sent from MessageInput
component with property show_in_channel: true
.
This value is attached to the checkbox (with label “Also Send To Channel”) in MessageInput
component within Thread
component.
Type |
---|
boolean |
setSendThreadMessageInChannel
Setter function for setSendThreadMessageInChannel
.
Type |
---|
(sendThreadMessageInChannel) => void |