From 5c5467d823b1da765c981b86bcf96f7b54703642 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Tue, 20 Dec 2005 02:40:29 +0000 Subject: [PATCH] Show no JEP-85 status in the chat banner when the contact is offline; closes #1202 --- src/tabbed_chat_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index f090ba969..e3b6ef999 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -273,7 +273,9 @@ class TabbedChatWindow(chat.Chat): st = gajim.config.get('chat_state_notifications') if contact.chatstate and st in ('composing_only', 'all'): - if st == 'all': + if contact.show == 'offline': + chatstate = '' + elif st == 'all': chatstate = helpers.get_uf_chatstate(contact.chatstate) else: # 'composing_only' if chatstate in ('composing', 'paused'):