MessagePreviewFormatter

An interface that allows to generate a preview text for the given message.

Types

Link copied to clipboard
object Companion

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
abstract fun formatMessageTitle(message: Message, currentUser: User?): AnnotatedString

Generates a preview title for the given message.