changeset 338:d4883f9576db

chat: handle room statuses following backend change
author Goffi <goffi@goffi.org>
date Sun, 29 Dec 2019 17:36:50 +0100
parents 544c437f5094
children 63cdabdd032e
files cagou/plugins/plugin_wid_chat.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.py	Sat Dec 28 16:42:42 2019 +0100
+++ b/cagou/plugins/plugin_wid_chat.py	Sun Dec 29 17:36:50 2019 +0100
@@ -412,9 +412,10 @@
     history_scroll = properties.ObjectProperty()
 
     def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None,
-                 subject=None, profiles=None):
+                 subject=None, statuses=None, profiles=None):
         quick_chat.QuickChat.__init__(
-            self, host, target, type_, nick, occupants, subject, profiles=profiles)
+            self, host, target, type_, nick, occupants, subject, statuses,
+            profiles=profiles)
         self.otr_state_encryption = OTR_STATE_UNENCRYPTED
         self.otr_state_trust = OTR_STATE_UNTRUSTED
         # completion attributes
@@ -737,7 +738,7 @@
         self.encryption_btn.selectAlgo(None)
 
     def _mucJoinCb(self, joined_data):
-        joined, room_jid_s, occupants, user_nick, subject, profile = joined_data
+        joined, room_jid_s, occupants, user_nick, subject, statuses, profile = joined_data
         self.host.mucRoomJoinedHandler(*joined_data[1:])
         jid_ = jid.JID(room_jid_s)
         self.changeWidget(jid_)