Don't show unread messages in window title when notify_on_all_muc_message is False. Closes #1384
This commit is contained in:
parent
efed18a819
commit
f74831dd56
1 changed files with 3 additions and 2 deletions
|
@ -199,10 +199,11 @@ class MessageWindow:
|
||||||
control = self.get_active_control()
|
control = self.get_active_control()
|
||||||
if control.type_id == message_control.TYPE_GC:
|
if control.type_id == message_control.TYPE_GC:
|
||||||
title = control.room_jid
|
title = control.room_jid
|
||||||
|
if gajim.config.get('notify_on_all_muc_messages'):
|
||||||
|
title = unread_str + title
|
||||||
else:
|
else:
|
||||||
title = control.contact.get_shown_name()
|
title = unread_str + control.contact.get_shown_name()
|
||||||
|
|
||||||
title = unread_str + title
|
|
||||||
self.window.set_title(title)
|
self.window.set_title(title)
|
||||||
|
|
||||||
if urgent:
|
if urgent:
|
||||||
|
|
Loading…
Add table
Reference in a new issue