comparison src/browser/libervia_main.py @ 581:1c1dbe03d3c6

browser_side: fixes issue while getting a chat state for a MUC occupant who already left
author souliane <souliane@mailoo.org>
date Mon, 20 Oct 2014 10:00:44 +0200
parents e1a773a64fb6
children 0a06cf833f5a
comparison
equal deleted inserted replaced
580:79fbc20c786b 581:1c1dbe03d3c6
916 target = from_jid.bare 916 target = from_jid.bare
917 nick = from_jid.resource 917 nick = from_jid.resource
918 918
919 for lib_wid in self.libervia_widgets: 919 for lib_wid in self.libervia_widgets:
920 if isinstance(lib_wid, panels.ChatPanel): 920 if isinstance(lib_wid, panels.ChatPanel):
921 if target == '@ALL' or target == lib_wid.target.bare: 921 if target == '@ALL@' or lib_wid.matchEntity(target):
922 if lib_wid.type == 'one2one': 922 lib_wid.setState(state, nick=nick)
923 lib_wid.setState(state)
924 elif lib_wid.type == 'group':
925 lib_wid.setState(state, nick=nick)
926 923
927 def _askConfirmation(self, confirmation_id, confirmation_type, data): 924 def _askConfirmation(self, confirmation_id, confirmation_type, data):
928 answer_data = {} 925 answer_data = {}
929 926
930 def confirm_cb(result): 927 def confirm_cb(result):