# HG changeset patch
# User Goffi <goffi@goffi.org>
# Date 1577637410 -3600
# Node ID d4883f9576db3fe804d1509ab0cab0f39eb9b41f
# Parent  544c437f5094a3413cca10a41efc210df2cc1489
chat: handle room statuses following backend change

diff -r 544c437f5094 -r d4883f9576db cagou/plugins/plugin_wid_chat.py
--- 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_)