Fix validation error with session switchover events.

This commit is contained in:
Greyson Parrelli
2026-03-17 13:07:35 +00:00
committed by Cody Henthorne
parent ef6e5abc17
commit 8bc183b994

View File

@@ -1723,7 +1723,9 @@ private fun ChatUpdateMessage.isOnlyForIndividualChats(): Boolean {
this.simpleUpdate?.type == SimpleChatUpdate.Type.END_SESSION ||
this.simpleUpdate?.type == SimpleChatUpdate.Type.CHAT_SESSION_REFRESH ||
this.simpleUpdate?.type == SimpleChatUpdate.Type.PAYMENT_ACTIVATION_REQUEST ||
this.simpleUpdate?.type == SimpleChatUpdate.Type.PAYMENTS_ACTIVATED
this.simpleUpdate?.type == SimpleChatUpdate.Type.PAYMENTS_ACTIVATED ||
this.sessionSwitchover != null ||
this.threadMerge != null
}
private fun ChatUpdateMessage.isOnlyForGroupChats(): Boolean {