diff 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
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py	Sun Jul 17 16:47:33 2016 +0200
+++ b/frontends/src/primitivus/chat.py	Sun Jul 17 17:12:42 2016 +0200
@@ -450,6 +450,9 @@
                     entity=from_jid,
                     ))
                 self.host.notify(C.NOTIFY_MESSAGE, from_jid, msg, widget=self, profile=self.profile)
+            else:
+                self.host.notify(C.NOTIFY_MESSAGE, self.target, widget=self, profile=self.profile)
+
 
     def addUser(self, nick):
         occupant = super(Chat, self).addUser(nick)