summaryrefslogtreecommitdiff
path: root/Assistant/Sync.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-24 15:42:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-24 15:42:02 -0400
commite61eabc176e145deed2572efff3e1c22c0939b79 (patch)
tree3f219e8abb3a320f4db66122aeadaab72c671218 /Assistant/Sync.hs
parent74bfce98180d93ac84fea5ca383d981d773e2e50 (diff)
initial implementation of XMPP push notifier (untested)
Lacking error handling, reconnection, credentials configuration, and doesn't actually do anything when it receives an incoming notification. Other than that, it might work! :)
Diffstat (limited to 'Assistant/Sync.hs')
-rw-r--r--Assistant/Sync.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Assistant/Sync.hs b/Assistant/Sync.hs
index e333877f2..f9a513d94 100644
--- a/Assistant/Sync.hs
+++ b/Assistant/Sync.hs
@@ -101,7 +101,7 @@ pushToRemotes threadname now st mpushnotifier mpushmap remotes = do
let ok = null failed
if ok
then do
- maybe noop notifyPush mpushnotifier
+ maybe noop (notifyPush $ map Remote.uuid succeeded) mpushnotifier
return ok
else if shouldretry
then retry branch g u failed
@@ -127,7 +127,7 @@ pushToRemotes threadname now st mpushnotifier mpushmap remotes = do
(succeeded, failed) <- inParallel (pushfallback g u branch) rs
updatemap succeeded failed
unless (null succeeded) $
- maybe noop notifyPush mpushnotifier
+ maybe noop (notifyPush $ map Remote.uuid succeeded) mpushnotifier
return $ null failed
push g branch remote = Command.Sync.pushBranch remote branch g