comparison src/browser/sat_browser/plugin_sec_otr.py @ 909:e8b133b77aa4

browser, server: update to get compatibility with 0.7-dev (not finished): Q&D update to restore compatibility - version changed to 0.7D - contact list has been modified to be compatible with changes, but it doesn't take profit of improvment yet - messageSend partially work, there is a disconnection and an error in console logs when sending a message - message are not received yet
author Goffi <goffi@goffi.org>
date Tue, 09 Aug 2016 01:07:15 +0200
parents f8a7a046ff9c
children 0c0551967bdf
comparison
equal deleted inserted replaced
908:f38b8be94131 909:e8b133b77aa4
386 def __init__(self, host): 386 def __init__(self, host):
387 log.info(_(u"OTR plugin initialization")) 387 log.info(_(u"OTR plugin initialization"))
388 self.host = host 388 self.host = host
389 self.context_manager = None 389 self.context_manager = None
390 self.host.bridge._registerMethods(["skipOTR"]) 390 self.host.bridge._registerMethods(["skipOTR"])
391 self.host.trigger.add("newMessageTrigger", self.newMessageTg, priority=trigger.TriggerManager.MAX_PRIORITY) 391 self.host.trigger.add("messageNewTrigger", self.newMessageTg, priority=trigger.TriggerManager.MAX_PRIORITY) # FIXME: need to be fixed after message refactoring
392 self.host.trigger.add("sendMessageTrigger", self.sendMessageTg, priority=trigger.TriggerManager.MAX_PRIORITY) 392 self.host.trigger.add("sendMessageTrigger", self.sendMessageTg, priority=trigger.TriggerManager.MAX_PRIORITY)
393 393
394 # FIXME: workaround for a pyjamas issue: calling hash on a class method always return a different value if that method is defined directly within the class (with the "def" keyword) 394 # FIXME: workaround for a pyjamas issue: calling hash on a class method always return a different value if that method is defined directly within the class (with the "def" keyword)
395 self._profilePluggedListener = self.profilePluggedListener 395 self._profilePluggedListener = self.profilePluggedListener
396 self._gotMenusListener = self.gotMenusListener 396 self._gotMenusListener = self.gotMenusListener