Mercurial > libervia-backend
comparison frontends/src/primitivus/chat.py @ 2008:8a749ec21c50
primitivus: fixed notifications counter for simple messages in MUC rooms
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 17 Jul 2016 17:12:42 +0200 |
parents | 19b9d3f8a6c7 |
children | d2144d04065e |
comparison
equal
deleted
inserted
replaced
2007:19b9d3f8a6c7 | 2008:8a749ec21c50 |
---|---|
448 from_jid = wid.mess_data.from_jid | 448 from_jid = wid.mess_data.from_jid |
449 msg = _(u'{entity} is talking to you'.format( | 449 msg = _(u'{entity} is talking to you'.format( |
450 entity=from_jid, | 450 entity=from_jid, |
451 )) | 451 )) |
452 self.host.notify(C.NOTIFY_MESSAGE, from_jid, msg, widget=self, profile=self.profile) | 452 self.host.notify(C.NOTIFY_MESSAGE, from_jid, msg, widget=self, profile=self.profile) |
453 else: | |
454 self.host.notify(C.NOTIFY_MESSAGE, self.target, widget=self, profile=self.profile) | |
455 | |
453 | 456 |
454 def addUser(self, nick): | 457 def addUser(self, nick): |
455 occupant = super(Chat, self).addUser(nick) | 458 occupant = super(Chat, self).addUser(nick) |
456 self.occupants_widget.addUser(occupant) | 459 self.occupants_widget.addUser(occupant) |
457 | 460 |