changeset 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 e9a6cbb924e6
children df8cb7bedfbf
files src/browser/sat_browser/chat.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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