handleMessagePosition

abstract fun handleMessagePosition(previousMessage: Message?, message: Message, nextMessage: Message?, isAfterDateSeparator: Boolean, isInThread: Boolean): List<MessagePosition>

Determines the position of a message inside a group.

Return

The position of the current message inside the group.

Parameters

previousMessage

The previous Message in the list.

message

The current Message in the list.

nextMessage

The next Message in the list.

isAfterDateSeparator

If a date separator was added before the current Message.

isInThread

If the current Message is in a thread.