formatMessagePreview

abstract fun formatMessagePreview(channel: Channel, message: Message, currentUser: User?): CharSequence

Generates a preview text for the given message.

Return

The formatted text representation for the given message.

Parameters

channel

The channel containing the message.

message

The message whose data is used to generate the preview text.

currentUser

The currently logged in user.