diff src/browser/libervia_main.py @ 663:423182fea41c frontends_multi_profiles

browser_side: fixes OTR using the new resource system and proper triggers (send and receive message) or listener (presence update)
author souliane <souliane@mailoo.org>
date Tue, 03 Mar 2015 07:21:50 +0100
parents ebb602d8b3f2
children 6a8a1103ad10
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Tue Mar 03 06:51:13 2015 +0100
+++ b/src/browser/libervia_main.py	Tue Mar 03 07:21:50 2015 +0100
@@ -372,7 +372,7 @@
         log.debug("newWidget: {}".format(wid))
         self.addWidget(wid)
 
-    def newMessageHandler(self, from_jid_s, msg, type_, to_jid_s, extra, profile):
+    def newMessageHandler(self, from_jid_s, msg, type_, to_jid_s, extra, profile=C.PROF_KEY_NONE):
         if type_ == C.MESS_TYPE_HEADLINE:
             from_jid = jid.JID(from_jid_s)
             if from_jid.domain == self._defaultDomain: