remove xa
I have a theory that some google xmpp servers don't send prsense for xa clients, while others do. Seeing some weird lack of presence messages sometimes there.
This commit is contained in:
parent
ade57af9e5
commit
90e4708890
1 changed files with 1 additions and 6 deletions
|
@ -52,9 +52,8 @@ instance GitAnnexTaggable Message where
|
|||
extractGitAnnexTag = headMaybe . filter isGitAnnexTag . messagePayloads
|
||||
|
||||
instance GitAnnexTaggable Presence where
|
||||
-- always mark extended away and set presence priority to negative
|
||||
insertGitAnnexTag p elt = p
|
||||
{ presencePayloads = extendedAway : negativePriority : elt : presencePayloads p }
|
||||
{ presencePayloads = negativePriority : elt : presencePayloads p }
|
||||
extractGitAnnexTag = headMaybe . filter isGitAnnexTag . presencePayloads
|
||||
|
||||
data GitAnnexTagInfo = GitAnnexTagInfo
|
||||
|
@ -205,10 +204,6 @@ silentMessage = (emptyMessage MessageChat)
|
|||
, elementNodes = []
|
||||
}
|
||||
|
||||
{- Add to a presence to mark its client as extended away. -}
|
||||
extendedAway :: Element
|
||||
extendedAway = Element "show" [] [NodeContent $ ContentText "xa"]
|
||||
|
||||
{- Add to a presence to give it a negative priority. -}
|
||||
negativePriority :: Element
|
||||
negativePriority = Element "priority" [] [NodeContent $ ContentText "-1"]
|
||||
|
|
Loading…
Reference in a new issue