canReplyToMessage

fun canReplyToMessage(replyEnabled: Boolean, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether a reply (quote) can be made to the given message.

A reply is allowed when:

  • Reply functionality is enabled in the UI configuration

  • The message has been successfully synced with the backend

  • The user has the capability to quote messages in the channel

Return

true if a reply can be made to the message, false otherwise.

Parameters

replyEnabled

Whether the reply feature is enabled in the UI.

message

The message to check for reply eligibility.

ownCapabilities

The set of capabilities the current user has in the channel.