# HG changeset patch # User souliane # Date 1385379409 -3600 # Node ID 7b72d5c30ebc7a8fbd4cfdc77138f36e70ae0bb5 # Parent e867f146d49fecf20d15e48911dfe4d4e21c2680 primivitus: do not notify when an empty message is received diff -r e867f146d49f -r 7b72d5c30ebc frontends/src/primitivus/chat.py --- 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