This commit is contained in:
Evgeny Poberezkin 2023-04-07 11:01:33 +01:00
parent ccff79aa59
commit c7f5443920

View File

@ -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