canThreadReplyToMessage
fun canThreadReplyToMessage(threadsEnabled: Boolean, isInThread: Boolean, message: Message, ownCapabilities: Set<String>): Boolean
Determines whether a thread reply can be made to the given message.
A thread reply is allowed when:
Thread functionality is enabled in the UI configuration
The user is not currently viewing a thread
The message is not a thread reply
The message has been successfully synced with the backend
The user has the capability to send replies in the channel
Return
true if a thread reply can be made to the message, false otherwise.
Parameters
threadsEnabled
Whether the thread feature is enabled in the UI.
isInThread
Whether the user is currently viewing messages within a thread.
message
The message to check for thread reply eligibility.
ownCapabilities
The set of capabilities the current user has in the channel.