formatMessagePreview
abstract fun formatMessagePreview(message: Message, currentUser: User?, isDirectMessaging: Boolean): AnnotatedString
Generates a preview text for the given message content (icon + text), excluding the sender name prefix.
Return
The formatted text representation for the given message.
Parameters
message
The message whose data is used to generate the preview text.
currentUser
The currently logged in user.
isDirectMessaging
Whether the channel is a direct message conversation.