changeset 4120:832a7bdb3aea

plugin XEP-0167: don't override existing metadata when preparing confirmation: rel 424
author Goffi <goffi@goffi.org>
date Tue, 03 Oct 2023 15:20:00 +0200
parents ece304ec7077
children b2709504586a
files libervia/backend/plugins/plugin_xep_0167/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0167/__init__.py	Tue Oct 03 15:18:25 2023 +0200
+++ b/libervia/backend/plugins/plugin_xep_0167/__init__.py	Tue Oct 03 15:20:00 2023 +0200
@@ -513,7 +513,7 @@
         application_data = content_data["application_data"]
         if action == self._j.A_PREPARE_CONFIRMATION:
             session["metadata"] = {}
-            session["peer_metadata"] = {}
+            session.setdefault("peer_metadata", {})
             try:
                 media = application_data["media"] = desc_elt["media"]
             except KeyError: