From f3abbcb46787a9bfcba6382a4910d6046a405fef Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 25 Nov 2013 12:36:49 +0100 Subject: [PATCH] primivitus: do not notify when an empty message is received --- frontends/src/primitivus/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/src/primitivus/chat.py b/frontends/src/primitivus/chat.py index d9b8c6ec..41061e37 100644 --- a/frontends/src/primitivus/chat.py +++ b/frontends/src/primitivus/chat.py @@ -302,6 +302,8 @@ class Chat(urwid.WidgetWrap, QuickChat): @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