diff 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
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Sun Oct 19 12:32:08 2014 +0200
+++ b/src/browser/libervia_main.py	Mon Oct 20 10:00:44 2014 +0200
@@ -918,11 +918,8 @@
 
         for lib_wid in self.libervia_widgets:
             if isinstance(lib_wid, panels.ChatPanel):
-                if target == '@ALL' or target == lib_wid.target.bare:
-                    if lib_wid.type == 'one2one':
-                        lib_wid.setState(state)
-                    elif lib_wid.type == 'group':
-                        lib_wid.setState(state, nick=nick)
+                if target == '@ALL@' or lib_wid.matchEntity(target):
+                    lib_wid.setState(state, nick=nick)
 
     def _askConfirmation(self, confirmation_id, confirmation_type, data):
         answer_data = {}