mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-04 12:31:46 +00:00
ios: pending contact connections UI, core: delete connections on the server when deleting in UI/db (#565)
* ios: started pending connections UI * ios: UI for pending contact connections complete * this has to be getter, or it would break JSON parsing * ios: update "initiated" status of connection
This commit is contained in:
committed by
GitHub
parent
db4731f19b
commit
89c36d42e2
+5
-2
@@ -365,8 +365,11 @@ processChatCommand = \case
|
||||
unsetActive $ ActiveC localDisplayName
|
||||
pure $ CRContactDeleted ct
|
||||
gs -> throwChatError $ CEContactGroups ct gs
|
||||
CTContactConnection ->
|
||||
CRContactConnectionDeleted <$> withStore (\st -> deletePendingContactConnection st userId chatId)
|
||||
CTContactConnection -> withChatLock . procCmd $ do
|
||||
conn <- withStore $ \st -> getPendingContactConnection st userId chatId
|
||||
withAgent $ \a -> deleteConnection a $ aConnId' conn
|
||||
withStore $ \st -> deletePendingContactConnection st userId chatId
|
||||
pure $ CRContactConnectionDeleted conn
|
||||
CTGroup -> pure $ chatCmdError "not implemented"
|
||||
CTContactRequest -> pure $ chatCmdError "not supported"
|
||||
APIAcceptContact connReqId -> withUser $ \user@User {userId} -> withChatLock $ do
|
||||
|
||||
Reference in New Issue
Block a user