android, desktop: fix incorrect event type for critical/internal error alerts

This commit is contained in:
Evgeny Poberezkin
2024-04-09 18:18:11 +01:00
parent 72611084d3
commit 1fa79a2654
@@ -2119,7 +2119,7 @@ object ChatController {
if (active(r.user)) {
chatModel.updateContact(rhId, r.contact)
}
is CR.ChatCmdError -> when {
is CR.ChatRespError -> when {
r.chatError is ChatError.ChatErrorAgent && r.chatError.agentError is AgentErrorType.CRITICAL -> {
chatModel.processedCriticalError.newError(r.chatError.agentError, r.chatError.agentError.offerRestart)
}