From d63c7d2abc8a17f52b8505e0a61408f02774f4b8 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 20 Jul 2023 16:15:57 +0400 Subject: [PATCH] core: silence group errors to reduce load on UI event log (#2735) --- src/Simplex/Chat.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Simplex/Chat.hs b/src/Simplex/Chat.hs index e5034c8417..9f4988271d 100644 --- a/src/Simplex/Chat.hs +++ b/src/Simplex/Chat.hs @@ -3112,7 +3112,8 @@ processAgentMessageConn user@User {userId} corrId agentConnId agentMessage = do withCompletedCommand conn agentMsg $ \CommandData {cmdFunction, cmdId} -> when (cmdFunction == CFAckMessage) $ ackMsgDeliveryEvent conn cmdId MERR _ err -> do - toView $ CRChatError (Just user) (ChatErrorAgent err $ Just connEntity) + -- group errors are silenced to reduce load on UI event log + -- toView $ CRChatError (Just user) (ChatErrorAgent err $ Just connEntity) incAuthErrCounter connEntity conn err ERR err -> do toView $ CRChatError (Just user) (ChatErrorAgent err $ Just connEntity)