-
public interface MessagePreviewFormatterAn interface that allows to generate a preview text for the given message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessagePreviewFormatter.Companion
-
Method Summary
Modifier and Type Method Description abstract AnnotatedStringformatMessageTitle(Message message, User currentUser)Generates a preview title for the given message. abstract AnnotatedStringformatMessagePreview(Message message, User currentUser, Boolean isDirectMessaging)Generates a preview text for the given message content (icon + text), excluding the sender name prefix. -
-
Method Detail
-
formatMessageTitle
abstract AnnotatedString formatMessageTitle(Message message, User currentUser)
Generates a preview title for the given message.
- Parameters:
message- The message whose data is used to generate the preview title.currentUser- The currently logged in user.
-
formatMessagePreview
abstract AnnotatedString formatMessagePreview(Message message, User currentUser, Boolean isDirectMessaging)
Generates a preview text for the given message content (icon + text), excluding the sender name prefix.
- 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.
-
-
-
-