shouldShowMessageFooter

fun MessageFooterVisibility.shouldShowMessageFooter(message: Message, isLastMessageInGroup: Boolean, nextMessage: Message?): Boolean

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

Return

If the message footer should be visible or not.

Parameters

message

The current message for which we are checking whether we need to show the footer for.

isLastMessageInGroup

Is the message at the bottom of the group.

nextMessage

The message that comes after the current message. Depending on it and MessageFooterVisibility we will show/hide the footer.