comparison cagou/plugins/plugin_wid_chat.py @ 338:d4883f9576db

chat: handle room statuses following backend change
author Goffi <goffi@goffi.org>
date Sun, 29 Dec 2019 17:36:50 +0100
parents 36d6763af547
children 63cdabdd032e
comparison
equal deleted inserted replaced
337:544c437f5094 338:d4883f9576db
410 message_input = properties.ObjectProperty() 410 message_input = properties.ObjectProperty()
411 messages_widget = properties.ObjectProperty() 411 messages_widget = properties.ObjectProperty()
412 history_scroll = properties.ObjectProperty() 412 history_scroll = properties.ObjectProperty()
413 413
414 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None, 414 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None,
415 subject=None, profiles=None): 415 subject=None, statuses=None, profiles=None):
416 quick_chat.QuickChat.__init__( 416 quick_chat.QuickChat.__init__(
417 self, host, target, type_, nick, occupants, subject, profiles=profiles) 417 self, host, target, type_, nick, occupants, subject, statuses,
418 profiles=profiles)
418 self.otr_state_encryption = OTR_STATE_UNENCRYPTED 419 self.otr_state_encryption = OTR_STATE_UNENCRYPTED
419 self.otr_state_trust = OTR_STATE_UNTRUSTED 420 self.otr_state_trust = OTR_STATE_UNTRUSTED
420 # completion attributes 421 # completion attributes
421 self._hi_comp_data = None 422 self._hi_comp_data = None
422 self._hi_comp_last = None 423 self._hi_comp_last = None
735 self.encryption_btn.symbol = SYMBOL_UNENCRYPTED 736 self.encryption_btn.symbol = SYMBOL_UNENCRYPTED
736 self.encryption_btn.color = COLOR_UNENCRYPTED 737 self.encryption_btn.color = COLOR_UNENCRYPTED
737 self.encryption_btn.selectAlgo(None) 738 self.encryption_btn.selectAlgo(None)
738 739
739 def _mucJoinCb(self, joined_data): 740 def _mucJoinCb(self, joined_data):
740 joined, room_jid_s, occupants, user_nick, subject, profile = joined_data 741 joined, room_jid_s, occupants, user_nick, subject, statuses, profile = joined_data
741 self.host.mucRoomJoinedHandler(*joined_data[1:]) 742 self.host.mucRoomJoinedHandler(*joined_data[1:])
742 jid_ = jid.JID(room_jid_s) 743 jid_ = jid.JID(room_jid_s)
743 self.changeWidget(jid_) 744 self.changeWidget(jid_)
744 745
745 def _mucJoinEb(self, failure): 746 def _mucJoinEb(self, failure):