diff sat_frontends/quick_frontend/quick_app.py @ 3101:ab7e8ade848a

plugin XEP-0045: added room statuses to metadata: room statuses are now sent with other metadata on bridge signals, and saved in Room instance. They give useful data on the room, for instance they can be used to know if a full jid is used in this room.
author Goffi <goffi@goffi.org>
date Mon, 30 Dec 2019 20:44:02 +0100
parents ab8be8f1c92d
children 7574f795bd1e
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Sat Dec 28 20:02:18 2019 +0100
+++ b/sat_frontends/quick_frontend/quick_app.py	Mon Dec 30 20:44:02 2019 +0100
@@ -859,7 +859,8 @@
 
         self.callListeners("presence", entity, show, priority, statuses, profile=profile)
 
-    def mucRoomJoinedHandler(self, room_jid_s, occupants, user_nick, subject, profile):
+    def mucRoomJoinedHandler(
+            self, room_jid_s, occupants, user_nick, subject, statuses, profile):
         """Called when a MUC room is joined"""
         log.debug(
             "Room [{room_jid}] joined by {profile}, users presents:{users}".format(
@@ -875,6 +876,7 @@
             nick=user_nick,
             occupants=occupants,
             subject=subject,
+            statuses=statuses,
             profile=profile,
         )