changeset 4117:d861ad696797

plugin XEP-0045: fix name conflict in errback
author Goffi <goffi@goffi.org>
date Tue, 03 Oct 2023 15:03:53 +0200
parents 23fa52acf72c
children 07370d2a9bde
files libervia/backend/plugins/plugin_xep_0045.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0045.py	Mon Aug 21 15:19:45 2023 +0200
+++ b/libervia/backend/plugins/plugin_xep_0045.py	Tue Oct 03 15:03:53 2023 +0200
@@ -519,7 +519,7 @@
         """
         return self.host.memory.config_get(CONFIG_SECTION, 'default_muc', default_conf['default_muc'])
 
-    def _join_eb(self, failure_, client):
+    def _bridge_join_eb(self, failure_, client):
         failure_.trap(AlreadyJoined)
         room = failure_.value.room
         return [True] + self._get_room_joined_args(room, client.profile)
@@ -548,7 +548,7 @@
         )
 
         d.addCallback(lambda room: [False] + self._get_room_joined_args(room, client.profile))
-        d.addErrback(self._join_eb, client)
+        d.addErrback(self._bridge_join_eb, client)
         return d
 
     async def join(