notify_on_all_muc_messages advanced option
This commit is contained in:
parent
6b9c37f40b
commit
e7498bca12
|
@ -1137,7 +1137,8 @@ class Chat:
|
||||||
if (jid != self.get_active_jid() or \
|
if (jid != self.get_active_jid() or \
|
||||||
not self.window.is_active() or \
|
not self.window.is_active() or \
|
||||||
not end) and kind == 'incoming':
|
not end) and kind == 'incoming':
|
||||||
if self.widget_name == 'groupchat_window':
|
if self.widget_name == 'groupchat_window' and\
|
||||||
|
not gajim.config.get('notify_on_all_muc_messages'):
|
||||||
# Do not notify us for gc messages that are not for us
|
# Do not notify us for gc messages that are not for us
|
||||||
if text.find(self.nicks[jid]) == -1:
|
if text.find(self.nicks[jid]) == -1:
|
||||||
return
|
return
|
||||||
|
|
|
@ -131,6 +131,7 @@ class Config:
|
||||||
'conversation_font': [opt_str, 'Sans 10'],
|
'conversation_font': [opt_str, 'Sans 10'],
|
||||||
# IEC standard says KiB = 1024 bytes KB = 1000 bytes
|
# IEC standard says KiB = 1024 bytes KB = 1000 bytes
|
||||||
'use_kib_mib': [opt_bool, False],
|
'use_kib_mib': [opt_bool, False],
|
||||||
|
'notify_on_all_muc_messages': [opt_bool, False],
|
||||||
}
|
}
|
||||||
|
|
||||||
__options_per_key = {
|
__options_per_key = {
|
||||||
|
|
Loading…
Reference in New Issue