formatMessagePreview

abstract fun formatMessagePreview(message: Message, currentUser: User?): AnnotatedString

Generates a preview text for the given message.

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.