show by default all events in roster

This commit is contained in:
Yann Leboulanger 2006-09-15 23:06:40 +00:00
parent 1a2bea6637
commit 87a2ff3d69
1 changed files with 4 additions and 9 deletions

View File

@ -42,11 +42,9 @@ def get_show_in_roster(event, account, contact):
return False return False
if event == 'message_received': if event == 'message_received':
chat_control = helpers.get_chat_control(account, contact) chat_control = helpers.get_chat_control(account, contact)
if not chat_control: if chat_control:
return True
elif event == 'ft_request':
return True
return False return False
return True
def get_show_in_systray(event, account, contact): def get_show_in_systray(event, account, contact):
'''Return True if this event must be shown in roster, else False''' '''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 return True
if gajim.config.get_per('notifications', str(num), 'systray') == 'no': if gajim.config.get_per('notifications', str(num), 'systray') == 'no':
return False return False
if event in ('message_received', 'ft_request', 'gc_msg_highlight',
'ft_request'):
return True return True
return False
def get_advanced_notification(event, account, contact): def get_advanced_notification(event, account, contact):
'''Returns the number of the first advanced notification or None''' '''Returns the number of the first advanced notification or None'''