Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
662:ebb602d8b3f2 | 663:423182fea41c |
---|---|
370 | 370 |
371 def newWidget(self, wid): | 371 def newWidget(self, wid): |
372 log.debug("newWidget: {}".format(wid)) | 372 log.debug("newWidget: {}".format(wid)) |
373 self.addWidget(wid) | 373 self.addWidget(wid) |
374 | 374 |
375 def newMessageHandler(self, from_jid_s, msg, type_, to_jid_s, extra, profile): | 375 def newMessageHandler(self, from_jid_s, msg, type_, to_jid_s, extra, profile=C.PROF_KEY_NONE): |
376 if type_ == C.MESS_TYPE_HEADLINE: | 376 if type_ == C.MESS_TYPE_HEADLINE: |
377 from_jid = jid.JID(from_jid_s) | 377 from_jid = jid.JID(from_jid_s) |
378 if from_jid.domain == self._defaultDomain: | 378 if from_jid.domain == self._defaultDomain: |
379 # we display announcement from the server in a dialog for better visibility | 379 # we display announcement from the server in a dialog for better visibility |
380 try: | 380 try: |