From a3374128218c95a7e9ae146c3661f1cceed2ae3e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 2 Dec 2005 22:24:01 +0000 Subject: [PATCH] don't print empty restored messages --- src/tabbed_chat_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 797cbd7c0..6b03e849b 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -910,6 +910,8 @@ class TabbedChatWindow(chat.Chat): pending_how_many, timeout) for row in rows: # row[0] time, row[1] has kind, row[2] the message + if not row[2]: # message is empty, we don't print it + continue if row[1] in (constants.KIND_CHAT_MSG_SENT, constants.KIND_SINGLE_MSG_SENT): kind = 'outgoing' name = gajim.nicks[self.account]