Skip to content

Commit f52031a

Browse files
authored
Merge pull request #107 from sstrigler/roster-pre-approval
pre-approval contd, add 'approved' attr to roster_item
2 parents ada6d94 + 5d5a005 commit f52031a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

specs/xmpp_codec.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
xmlns = <<"jabber:iq:roster">>,
7272
module = rfc6121,
7373
result = {roster_item, '$jid', '$name',
74-
'$groups', '$subscription', '$ask', '$mix_channel'},
74+
'$groups', '$subscription', '$ask', '$approved', '$mix_channel'},
7575
attrs = [#attr{name = <<"jid">>,
7676
required = true,
7777
dec = {jid, decode, []},
@@ -85,7 +85,11 @@
8585
dec = {dec_enum, [[none,to,from,both,remove]]}},
8686
#attr{name = <<"ask">>,
8787
enc = {enc_enum, []},
88-
dec = {dec_enum, [[subscribe]]}}],
88+
dec = {dec_enum, [[subscribe]]}},
89+
#attr{name = <<"approved">>,
90+
default = false,
91+
dec = {dec_bool, []},
92+
enc = {enc_bool, []}}],
8993
refs = [#ref{name = roster_group, label = '$groups'},
9094
#ref{name = mix_roster_channel, label = '$mix_channel', min = 0, max = 1}]}).
9195

0 commit comments

Comments
 (0)