mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
fix
This commit is contained in:
+1
-1
@@ -1542,7 +1542,7 @@ processChatCommand = \case
|
||||
(Just contact, _) -> pure $ CRContactAlreadyExists user contact
|
||||
(_, xContactId_) -> procCmd $ do
|
||||
let groupLinkId = crClientData >>= decodeJSON >>= \(CRDataGroup gli) -> Just gli
|
||||
when (isJust groupLinkId) $ throwChatError CEConnReqMessageProhibited
|
||||
when (isJust groupLinkId && isJust mc_) $ throwChatError CEConnReqMessageProhibited
|
||||
let randomXContactId = XContactId <$> drgRandomBytes 16
|
||||
xContactId <- maybe randomXContactId pure xContactId_
|
||||
-- [incognito] generate profile to send
|
||||
|
||||
Reference in New Issue
Block a user