Skip to content
Snippets Groups Projects
Commit 5c5467d8 authored by nicfit's avatar nicfit
Browse files

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

parent 3d2c288b
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,9 @@ def draw_name_banner(self, contact, chatstate = None):
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'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment