Mercurial > libervia-web
comparison src/browser/sat_browser/panels.py @ 585:bade589dbd5a
browser_side: revert one change from previous changeset: explicitely get history also for MUC, as we don't know if the service will send us the backlog
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 23 Oct 2014 16:56:36 +0200 |
parents | 0a06cf833f5a |
children | 3eb3a2c0c011 a5019e62c3e9 |
comparison
equal
deleted
inserted
replaced
584:0a06cf833f5a | 585:bade589dbd5a |
---|---|
1156 def createPanel(cls, host, item, type_='one2one'): | 1156 def createPanel(cls, host, item, type_='one2one'): |
1157 assert(item) | 1157 assert(item) |
1158 _contact = item if isinstance(item, jid.JID) else jid.JID(item) | 1158 _contact = item if isinstance(item, jid.JID) else jid.JID(item) |
1159 host.contact_panel.setContactMessageWaiting(_contact.bare, False) | 1159 host.contact_panel.setContactMessageWaiting(_contact.bare, False) |
1160 _new_panel = ChatPanel(host, _contact, type_) # XXX: pyjamas doesn't seems to support creating with cls directly | 1160 _new_panel = ChatPanel(host, _contact, type_) # XXX: pyjamas doesn't seems to support creating with cls directly |
1161 if type == 'one2one': | 1161 _new_panel.historyPrint() |
1162 _new_panel.historyPrint() | |
1163 host.setSelected(_new_panel) | 1162 host.setSelected(_new_panel) |
1164 _new_panel.refresh() | 1163 _new_panel.refresh() |
1165 return _new_panel | 1164 return _new_panel |
1166 | 1165 |
1167 def refresh(self): | 1166 def refresh(self): |