show by default all events in roster
This commit is contained in:
parent
1a2bea6637
commit
87a2ff3d69
|
@ -42,11 +42,9 @@ def get_show_in_roster(event, account, contact):
|
|||
return False
|
||||
if event == 'message_received':
|
||||
chat_control = helpers.get_chat_control(account, contact)
|
||||
if not chat_control:
|
||||
return True
|
||||
elif event == 'ft_request':
|
||||
return True
|
||||
return False
|
||||
if chat_control:
|
||||
return False
|
||||
return True
|
||||
|
||||
def get_show_in_systray(event, account, contact):
|
||||
'''Return True if this event must be shown in roster, else False'''
|
||||
|
@ -56,10 +54,7 @@ def get_show_in_systray(event, account, contact):
|
|||
return True
|
||||
if gajim.config.get_per('notifications', str(num), 'systray') == 'no':
|
||||
return False
|
||||
if event in ('message_received', 'ft_request', 'gc_msg_highlight',
|
||||
'ft_request'):
|
||||
return True
|
||||
return False
|
||||
return True
|
||||
|
||||
def get_advanced_notification(event, account, contact):
|
||||
'''Returns the number of the first advanced notification or None'''
|
||||
|
|
Loading…
Reference in New Issue