sameThread

inline fun Message.sameThread(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId): Boolean

Thread is the same thing that topic

Return

true in case if this message is in the chat chatId and topic threadId. The same here means that these messages from one chat and have equal Message.threadIdOrNull identifier


inline fun Message.sameThread(chat: Chat, threadId: MessageThreadId? = chat.id.threadId): Boolean

Thread is the same thing that topic

Return

true in case if this message is from the chat and topic threadId. The same here means that these messages from one chat and have equal Message.threadIdOrNull identifier


inline fun Message.sameThread(other: Message): Boolean

Thread is the same thing that topic

Return

true in case if this message is in the same topic as the other. The same here means that these messages from one chat and have equal Message.threadIdOrNull identifier