mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 12:19:54 +00:00
core: fix connecting via short links
This commit is contained in:
parent
52e2af6e32
commit
96b962809f
1 changed files with 2 additions and 2 deletions
|
@ -3159,9 +3159,9 @@ processChatCommand' vr = \case
|
|||
hash :: ConnReqContact -> ConnReqUriHash
|
||||
hash = ConnReqUriHash . C.sha256Hash . strEncode
|
||||
getShortLinkConnReq :: User -> ConnShortLink m -> CM (ConnectionRequestUri m)
|
||||
getShortLinkConnReq User {userId} l = do
|
||||
getShortLinkConnReq user l = do
|
||||
l' <- restoreShortLink' l
|
||||
(cReq, cData) <- withAgent (\a -> getConnShortLink a userId l')
|
||||
(cReq, cData) <- withAgent (\a -> getConnShortLink a (aUserId user) l')
|
||||
case cData of
|
||||
ContactLinkData {direct} | not direct -> throwChatError CEUnsupportedConnReq
|
||||
_ -> pure ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue