plugin XEP-0338: be sure to add the <group> element only once:
rel 424
This commit is contained in:
parent
f1d44fd872
commit
0fba22ad10
1 changed files with 5 additions and 2 deletions
|
|
@ -124,8 +124,11 @@ class XEP_0338:
|
|||
media_data: dict,
|
||||
desc_elt: domish.Element,
|
||||
) -> None:
|
||||
jingle_elt = session["jingle_elt"]
|
||||
self.add_group_element(jingle_elt, session)
|
||||
if content_name == next(iter(session["contents"])):
|
||||
# the <group> element must be added only once, so we do it only for the first
|
||||
# content
|
||||
jingle_elt = session["jingle_elt"]
|
||||
self.add_group_element(jingle_elt, session)
|
||||
|
||||
def _jingle_handler_trigger(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue