comparison 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
comparison
equal deleted inserted replaced
708:e9a6cbb924e6 709:78e4a79fbb5e
201 libervia_widget.LiberviaWidget.onQuit(self) 201 libervia_widget.LiberviaWidget.onQuit(self)
202 if self.type == C.CHAT_GROUP: 202 if self.type == C.CHAT_GROUP:
203 self.host.removeListener('presence', self.presenceListener) 203 self.host.removeListener('presence', self.presenceListener)
204 self.host.bridge.call('mucLeave', None, unicode(self.target.bare)) 204 self.host.bridge.call('mucLeave', None, unicode(self.target.bare))
205 205
206 def newMessage(self, from_jid, target, msg, type_, extra, profile):
207 header_info = extra.pop('header_info', None)
208 if header_info:
209 self.setHeaderInfo(header_info)
210 QuickChat.newMessage(self, from_jid, target, msg, type_, extra, profile)
211
206 def printInfo(self, msg, type_='normal', extra=None, link_cb=None): 212 def printInfo(self, msg, type_='normal', extra=None, link_cb=None):
207 """Print general info 213 """Print general info
208 @param msg: message to print 214 @param msg: message to print
209 @param type_: one of: 215 @param type_: one of:
210 "normal": general info like "toto has joined the room" (will be sanitized) 216 "normal": general info like "toto has joined the room" (will be sanitized)