mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
core: catch error when toggling notifications (#954)
* core: catch error when toggling notifications * filter current members * filter active members
This commit is contained in:
committed by
GitHub
parent
307db450d8
commit
164426db49
+2
-2
@@ -610,8 +610,8 @@ processChatCommand = \case
|
||||
Group _ ms <- getGroup db user chatId
|
||||
liftIO $ updateGroupSettings db user chatId chatSettings
|
||||
pure ms
|
||||
withAgent $ \a -> forM_ ms $ \m ->
|
||||
forM_ (memberConnId m) $ \connId -> toggleConnectionNtfs a connId (enableNtfs chatSettings)
|
||||
forM_ (filter memberActive ms) $ \m -> forM_ (memberConnId m) $ \connId ->
|
||||
withAgent (\a -> toggleConnectionNtfs a connId $ enableNtfs chatSettings) `catchError` (toView . CRChatError)
|
||||
pure CRCmdOk
|
||||
_ -> pure $ chatCmdError "not supported"
|
||||
APIContactInfo contactId -> withUser $ \User {userId} -> do
|
||||
|
||||
Reference in New Issue
Block a user