android: only open direct or group chats when in processNotificationIntent (fixes error on address notification) (#2505)

This commit is contained in:
spaced4ndy
2023-05-24 17:50:01 +04:00
committed by GitHub
parent 494328541a
commit f9f34911b1
@@ -582,7 +582,7 @@ fun processNotificationIntent(intent: Intent?, chatModel: ChatModel) {
}
val cInfo = chatModel.getChat(chatId)?.chatInfo
chatModel.clearOverlays.value = true
if (cInfo != null) openChat(cInfo, chatModel)
if (cInfo != null && (cInfo is ChatInfo.Direct || cInfo is ChatInfo.Group)) openChat(cInfo, chatModel)
}
}
}