Show no JEP-85 status in the chat banner when the contact is offline; closes #1202

This commit is contained in:
Travis Shirk 2005-12-20 02:40:29 +00:00
parent 3d2c288bb1
commit 5c5467d823
1 changed files with 3 additions and 1 deletions

View File

@ -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'):