diff options
author | Joe Crayne <joe@jerkface.net> | 2018-11-05 23:23:20 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2018-11-06 04:34:03 -0500 |
commit | fb4ad2167102046125c822841dabf3edba32ed85 (patch) | |
tree | 410ca61c160b3cb2398f7482752b6994c17ca23a /Presence/Stanza | |
parent | 239f4fa10828f2cc4e71cffa1d3aed31a0ce8625 (diff) |
Comments documenting home-grown <presence> whitelist attribute.
Diffstat (limited to 'Presence/Stanza')
-rw-r--r-- | Presence/Stanza/Types.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Presence/Stanza/Types.hs b/Presence/Stanza/Types.hs index cbb156a0..3e039a34 100644 --- a/Presence/Stanza/Types.hs +++ b/Presence/Stanza/Types.hs | |||
@@ -50,7 +50,20 @@ data StanzaType | |||
50 | , presencePriority :: Maybe Int8 | 50 | , presencePriority :: Maybe Int8 |
51 | , presenceStatus :: [(Lang,Text)] | 51 | , presenceStatus :: [(Lang,Text)] |
52 | , presenceWhiteList :: [Text] | 52 | , presenceWhiteList :: [Text] |
53 | -- ^ A custom extension extension we are using. When a | ||
54 | -- peer answers a presence probe, it also communicates | ||
55 | -- to the remote peer which remote users it believes | ||
56 | -- are subscribed to that presence. | ||
57 | -- | ||
58 | -- This is communicated via a space-delimited list in | ||
59 | -- the nonstandard "whitelist" attribute for a | ||
60 | -- <{jabber:server}presence> tag. | ||
61 | -- | ||
62 | -- TODO: Use this to update the buddies file so that a | ||
63 | -- client is made aware when a subscription was | ||
64 | -- canceled. | ||
53 | } | 65 | } |
66 | |||
54 | | PresenceInformError | 67 | | PresenceInformError |
55 | | PresenceInformSubscription Bool | 68 | | PresenceInformSubscription Bool |
56 | | PresenceRequestStatus | 69 | | PresenceRequestStatus |