mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-26 13:08:02 +00:00
fix group leave (#294)
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
@@ -1181,7 +1181,7 @@ throwChatError = throwError . ChatError
|
||||
deleteMemberConnection :: ChatMonad m => GroupMember -> m ()
|
||||
deleteMemberConnection m@GroupMember {activeConn} = do
|
||||
-- User {userId} <- asks currentUser
|
||||
withAgent $ forM_ (memberConnId m) . suspendConnection
|
||||
withAgent (forM_ (memberConnId m) . deleteConnection) `catchError` const (pure ())
|
||||
-- withStore $ \st -> deleteGroupMemberConnection st userId m
|
||||
forM_ activeConn $ \conn -> withStore $ \st -> updateConnectionStatus st conn ConnDeleted
|
||||
|
||||
|
||||
Reference in New Issue
Block a user