sameTopic

inline fun Message.sameTopic(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.sameTopic(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.sameTopic(other: Message): Boolean

Thread is the same thing that topic

Return

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