MessageFooterVisibility

Intended to be used for regulating the visibility of a single message footer visibility.

Inheritors

Types

Link copied to clipboard

The message footer will be visible for every message.

Link copied to clipboard

The message footer will only be visible to items that are last in group.

Link copied to clipboard

The message footer will never be visible.

Link copied to clipboard
data class WithTimeDifference(val timeDifferenceMillis: Long = DEFAULT_FOOTER_TIME_DIFF_MILLIS) : MessageFooterVisibility

The message footer will be visible to items that are sent inside a specified time duration.

Inherited functions

Link copied to clipboard
fun MessageFooterVisibility.shouldShowMessageFooter(message: Message, isLastMessageInGroup: Boolean, nextMessage: Message?): Boolean

Decides if we need to show the message footer (timestamp) below the message.