From fc6d4cdfcc7c83163d12059a8f784442ce5c4ca9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 3 Nov 2012 22:52:41 -0400 Subject: workaround for Google Talk's insane handling of self-directed presence Maybe the spec allows it, but broadcasting self-directed presence info to all buddies is just insane. I had to bring back the IQ messages for self-pairing, while still using directed presence for other pairing. Ugly. --- Assistant/XMPP/Buddies.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Assistant/XMPP/Buddies.hs') diff --git a/Assistant/XMPP/Buddies.hs b/Assistant/XMPP/Buddies.hs index 087a34879..77e506ee9 100644 --- a/Assistant/XMPP/Buddies.hs +++ b/Assistant/XMPP/Buddies.hs @@ -18,7 +18,7 @@ import Data.Text (Text) import qualified Data.Text as T genKey :: JID -> BuddyKey -genKey j = BuddyKey $ formatJID $ JID (jidNode j) (jidDomain j) Nothing +genKey j = BuddyKey $ formatJID $ baseJID j buddyName :: JID -> Text buddyName j = maybe (T.pack "") strNode (jidNode j) -- cgit v1.2.3