fix
This commit is contained in:
parent
ccff79aa59
commit
c7f5443920
@ -1542,7 +1542,7 @@ processChatCommand = \case
|
|||||||
(Just contact, _) -> pure $ CRContactAlreadyExists user contact
|
(Just contact, _) -> pure $ CRContactAlreadyExists user contact
|
||||||
(_, xContactId_) -> procCmd $ do
|
(_, xContactId_) -> procCmd $ do
|
||||||
let groupLinkId = crClientData >>= decodeJSON >>= \(CRDataGroup gli) -> Just gli
|
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
|
let randomXContactId = XContactId <$> drgRandomBytes 16
|
||||||
xContactId <- maybe randomXContactId pure xContactId_
|
xContactId <- maybe randomXContactId pure xContactId_
|
||||||
-- [incognito] generate profile to send
|
-- [incognito] generate profile to send
|
||||||
|
Loading…
Reference in New Issue
Block a user