Skip to main content
Version: v3

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

overrides the value from ThreadContext
allowThreadMessagesInChannel

Display the Show thread message in channel button inside the thread MessageInput.

TypeDefault
booleantrue

overrides the value from MessageInputContext
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

overrides the value from MessageInputContext
setSendThreadMessageInChannel

Setter function for setSendThreadMessageInChannel.

Type
(sendThreadMessageInChannel) => void

Did you find this page helpful?