more refactoring
This commit is contained in:
parent
0cf4c3ba9c
commit
7a20b3f1d5
2 changed files with 33 additions and 33 deletions
|
@ -146,11 +146,9 @@ relayNetMessage selfjid = convert =<< waitNetMessage
|
|||
convert (PairingNotification stage c u) = withclient c $ \tojid -> do
|
||||
changeBuddyPairing tojid True
|
||||
return $ putStanza $ pairingNotification stage u tojid selfjid
|
||||
convert (Pushing c pushstage) = sendclient c $
|
||||
gitAnnexMessage $ encodePushStage pushstage
|
||||
convert (Pushing c pushstage) = withclient c $ \tojid ->
|
||||
return $ putStanza $ pushMessage pushstage tojid selfjid
|
||||
|
||||
sendclient c construct = withclient c $ \tojid ->
|
||||
return $ putStanza $ construct tojid selfjid
|
||||
withclient c a = case parseJID c of
|
||||
Nothing -> return noop
|
||||
Just tojid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue