comparison src/browser/libervia_main.py @ 536:048ae7314156

browser_side: temporary way to display the OTR state in the LiberviaWidget header
author souliane <souliane@mailoo.org>
date Sun, 07 Sep 2014 16:40:33 +0200
parents 19fc2ebc02dd
children 530f3fc3e3d7
comparison
equal deleted inserted replaced
535:331cb6ea0235 536:048ae7314156
732 if lib_wid is not None: 732 if lib_wid is not None:
733 if msg_type == C.MESS_TYPE_INFO: 733 if msg_type == C.MESS_TYPE_INFO:
734 lib_wid.printInfo(msg) 734 lib_wid.printInfo(msg)
735 else: 735 else:
736 lib_wid.printMessage(from_jid, msg, extra) 736 lib_wid.printMessage(from_jid, msg, extra)
737 else: 737 if 'header_info' in extra:
738 # FIXME: "info" message will be lost here 738 lib_wid.setHeaderInfo(extra['header_info'])
739 else:
740 # FIXME: "info" message and header info will be lost here
739 if not self.contact_panel.isContactInRoster(other.bare): 741 if not self.contact_panel.isContactInRoster(other.bare):
740 self.contact_panel.updateContact(other.bare, {}, [C.GROUP_NOT_IN_ROSTER]) 742 self.contact_panel.updateContact(other.bare, {}, [C.GROUP_NOT_IN_ROSTER])
741 # The message has not been shown, we must indicate it 743 # The message has not been shown, we must indicate it
742 self.contact_panel.setContactMessageWaiting(other.bare, True) 744 self.contact_panel.setContactMessageWaiting(other.bare, True)
743 745