Mercurial > libervia-backend
diff frontends/src/primitivus/chat.py @ 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 | f7878ad3c846 |
children | bfabeedbf32e |
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