public fun performMessageAction(messageAction: MessageAction) { removeOverlay() when (messageAction) { is Resend -> resendMessage(messageAction.message)is ThreadReply -> { messageActions = messageActions + Reply(messageAction.message) loadThread(messageAction.message) } is Delete, is Flag -> {messageActions = messageActions + messageAction } is Copy -> copyMessage(messageAction.message)is MuteUser -> updateUserMute(messageAction.message.user)is React -> reactToMessage(messageAction.reaction, messageAction.message) is Pin -> updateMessagePin(messageAction.message)else -> {// no op, custom user action}}}
Triggered when the user selects a new message action, in the message overlay.