diff src/browser/sat_browser/chat.py @ 709:78e4a79fbb5e

browser_side: fix updating OTR icons when state or trust has changed
author souliane <souliane@mailoo.org>
date Mon, 08 Jun 2015 14:59:12 +0200
parents b395d1309936
children fc941d0d97f8
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py	Mon Jun 08 08:51:41 2015 +0200
+++ b/src/browser/sat_browser/chat.py	Mon Jun 08 14:59:12 2015 +0200
@@ -203,6 +203,12 @@
             self.host.removeListener('presence', self.presenceListener)
             self.host.bridge.call('mucLeave', None, unicode(self.target.bare))
 
+    def newMessage(self, from_jid, target, msg, type_, extra, profile):
+        header_info = extra.pop('header_info', None)
+        if header_info:
+            self.setHeaderInfo(header_info)
+        QuickChat.newMessage(self, from_jid, target, msg, type_, extra, profile)
+
     def printInfo(self, msg, type_='normal', extra=None, link_cb=None):
         """Print general info
         @param msg: message to print