MessagePreviewFormatter
interface MessagePreviewFormatter
An interface that allows to generate a preview text for the given message.
Functions
Link copied to clipboard
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.
Link copied to clipboard
Generates a preview title for the given message.