diff options
author | joe <joe@jerkface.net> | 2014-03-06 22:47:16 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-03-06 22:47:16 -0500 |
commit | e0e39465f0e3816a46d3ee3f3ba8a02d597d39e8 (patch) | |
tree | e9fb7500f8d741dfce72233ca6bdc9d0f2cf5a7e /Presence/XMPPServer.hs | |
parent | 8dc56b8f1d6417f2699171fd823fdbfd683ec0ac (diff) |
Do not send cached presence until a resource has sent initial presence.
Diffstat (limited to 'Presence/XMPPServer.hs')
-rw-r--r-- | Presence/XMPPServer.hs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index 9661391e..4dda1f70 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -190,7 +190,6 @@ data XMPPServerParameters = | |||
190 | , xmppInformClientPresence :: ConnectionKey -> Stanza -> IO () | 190 | , xmppInformClientPresence :: ConnectionKey -> Stanza -> IO () |
191 | , xmppInformPeerPresence :: ConnectionKey -> Stanza -> IO () | 191 | , xmppInformPeerPresence :: ConnectionKey -> Stanza -> IO () |
192 | , xmppAnswerProbe :: ConnectionKey -> Stanza -> TChan Stanza -> IO () | 192 | , xmppAnswerProbe :: ConnectionKey -> Stanza -> TChan Stanza -> IO () |
193 | , xmppSendCachedPresenceToClient :: ConnectionKey -> TChan Stanza -> IO () | ||
194 | } | 193 | } |
195 | 194 | ||
196 | 195 | ||
@@ -1592,7 +1591,6 @@ monitor sv params xmpp = do | |||
1592 | (Just rsc) -- to | 1591 | (Just rsc) -- to |
1593 | requestVersion | 1592 | requestVersion |
1594 | >>= ioWriteChan replyto | 1593 | >>= ioWriteChan replyto |
1595 | xmppSendCachedPresenceToClient xmpp k replyto | ||
1596 | SessionRequest -> do | 1594 | SessionRequest -> do |
1597 | me <- xmppTellMyNameToClient xmpp | 1595 | me <- xmppTellMyNameToClient xmpp |
1598 | let reply = iq_session_reply (stanzaId stanza) me | 1596 | let reply = iq_session_reply (stanzaId stanza) me |