Ask for status message for invisible status if ask_offline_status is True

This commit is contained in:
Jean-Marie Traissard 2006-12-12 22:26:31 +00:00
parent c54dfb4ffd
commit bf99ab82f7
1 changed files with 2 additions and 2 deletions

View File

@ -2749,8 +2749,8 @@ class RosterWindow:
if gajim.config.get_per('defaultstatusmsg', show, 'enabled'):
return gajim.config.get_per('defaultstatusmsg', show, 'message')
if (show == 'online' and not gajim.config.get('ask_online_status')) or \
(show == 'offline' and not gajim.config.get('ask_offline_status')) or \
show == 'invisible':
(show in ('offline', 'invisible')
and not gajim.config.get('ask_offline_status')):
return ''
dlg = dialogs.ChangeStatusMessageDialog(show)
dlg.window.present() # show it on current workspace