changeset 739:7b72d5c30ebc

primivitus: do not notify when an empty message is received
author souliane <souliane@mailoo.org>
date Mon, 25 Nov 2013 12:36:49 +0100
parents e867f146d49f
children aebc8ba05129
files frontends/src/primitivus/chat.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py	Mon Nov 25 12:29:14 2013 +0100
+++ b/frontends/src/primitivus/chat.py	Mon Nov 25 12:36:49 2013 +0100
@@ -302,6 +302,8 @@
         @param from_jid: contact who wrote to the users
         @param msg: the message that has been received
         """
+        if msg == "":
+            return
         if self.text_list.get_focus()[1] == len(self.content) - 2:
             #we don't change focus if user is not at the bottom
             #as that mean that he is probably watching discussion history