MessageUtils

open class MessageUtils

Functions

Link copied to clipboard
open fun extractDuration(@NonNull message: FileMessage): Int
Link copied to clipboard
open fun getMessageGroupType(@Nullable prevMessage: BaseMessage, @NonNull message: BaseMessage, @Nullable nextMessage: BaseMessage, @NonNull messageListUIParams: MessageListUIParams): MessageGroupType
Link copied to clipboard
open fun getNotificationLabel(@NonNull message: BaseMessage): String
Get notification label from message.
Link copied to clipboard
open fun getVoiceFilename(@NonNull message: FileMessage): String
Link copied to clipboard
open fun getVoiceMessageKey(@NonNull fileMessage: FileMessage): String
Link copied to clipboard
open fun hasParentMessage(@NonNull message: BaseMessage): Boolean
Link copied to clipboard
open fun hasThread(@NonNull message: BaseMessage): Boolean
Link copied to clipboard
open fun isDeletableMessage(@NonNull message: BaseMessage): Boolean
Link copied to clipboard
open fun isFailed(@NonNull message: BaseMessage): Boolean
Link copied to clipboard
open fun isGroupChanged(@Nullable frontMessage: BaseMessage, @Nullable backMessage: BaseMessage, @NonNull messageListUIParams: MessageListUIParams): Boolean
Link copied to clipboard
open fun isMine(@NonNull message: BaseMessage): Boolean
open fun isMine(@Nullable senderId: String): Boolean
Link copied to clipboard
open fun isSucceed(@NonNull message: BaseMessage): Boolean
Link copied to clipboard
open fun isUnknownType(@NonNull message: BaseMessage): Boolean
Link copied to clipboard
open fun isVoiceMessage(@Nullable fileMessage: FileMessage): Boolean