aboutsummaryrefslogtreecommitdiff
path: root/Assistant/Threads
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-24 19:09:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-24 19:09:02 -0400
commit0485a0b5a7b63641d352b40bdda2037377d30b15 (patch)
treebbe833feef2f2052a58ba103dfc169d34473e9d0 /Assistant/Threads
parent98aaf593f3d602858a995649e7b3f578854dcf89 (diff)
add a separate field for the JID
Diffstat (limited to 'Assistant/Threads')
-rw-r--r--Assistant/Threads/PushNotifier.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Assistant/Threads/PushNotifier.hs b/Assistant/Threads/PushNotifier.hs
index 39072b85e..82638b804 100644
--- a/Assistant/Threads/PushNotifier.hs
+++ b/Assistant/Threads/PushNotifier.hs
@@ -33,7 +33,7 @@ pushNotifierThread st dstatus pushnotifier = NamedThread thisThread $ do
v <- runThreadState st $ getXMPPCreds
case v of
Nothing -> nocreds
- Just c -> case parseJID (xmppUsername c) of
+ Just c -> case parseJID (xmppJID c) of
Nothing -> nocreds
Just jid -> void $ client c jid
where
@@ -75,6 +75,9 @@ data XMPPCreds = XMPPCreds
, xmppPassword :: T.Text
, xmppHostname :: HostName
, xmppPort :: Int
+ {- Something like username@hostname, but not necessarily the same
+ - username or hostname used to connect to the server. -}
+ , xmppJID :: T.Text
}
deriving (Read, Show)