Skip to content

Commit

Permalink
specs: mix: Fix mix:core:1 mix_participant and drop old version
Browse files Browse the repository at this point in the history
The mix_participant record is only used for the participants node of a
mix channel. This node cannot contain both namespaces at the same time,
thus this commit drops the old version and it also fixes the definition
of the element in mix:core:1. The attributes have been replaced with xml
elements for nick and jid.
  • Loading branch information
lnjX committed Oct 26, 2024
1 parent c045d4d commit f161f14
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions specs/xmpp_codec.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3559,17 +3559,11 @@

-xml(mix_participant,
#elem{name = <<"participant">>,
xmlns = [<<"urn:xmpp:mix:core:0">>, <<"urn:xmpp:mix:core:1">>],
xmlns = <<"urn:xmpp:mix:core:1">>,
module = 'xep0369',
result = {mix_participant, '$jid', '$nick', '$xmlns'},
attrs = [#attr{name = <<"jid">>,
required = true,
label = '$jid',
dec = {jid, decode, []},
enc = {jid, encode, []}},
#attr{name = <<"nick">>,
label = '$nick'},
#attr{name = <<"xmlns">>}]}).
result = {mix_participant, '$jid', '$nick'},
refs = [#ref{name = mix_jid, min = 0, max = 1, label = '$jid'},
#ref{name = mix_nick, min = 0, max = 1, label = '$nick'}]}).

-xml(mix_create,
#elem{name = <<"create">>,
Expand Down

0 comments on commit f161f14

Please sign in to comment.