defaultMessageOptionsState
fun defaultMessageOptionsState(selectedMessage: Message, currentUser: User?, isInThread: Boolean, ownCapabilities: Set<String>): List<MessageOptionItemState>
Builds the default message options we show to our users. A different set of options is shown for pending and sent messages.
Parameters
selectedMessage
Currently selected message, used to callbacks.
currentUser
Current user, used to expose different states for messages.
isInThread
If the message is in a thread or not, to block off some options.
ownCapabilities
Set of capabilities the user is given for the current channel. For a full list @see ChannelCapabilities.