Ticket #4635: show_offline_with_status_ACE.diff

File show_offline_with_status_ACE.diff, 1.9 KB (added by wojtek, 8 years ago)


  • src/common/config.py

    270270                'latex_png_dpi': [opt_str, '108',_('Change the value to change the size of latex formulas displayed. The higher is larger.') ],
    271271                'uri_schemes': [opt_str, 'aaa aaas acap cap cid crid data dav dict dns fax file ftp go gopher h323 http https icap im imap info ipp iris iris.beep iris.xpc iris.xpcs iris.lwz ldap mid modem msrp msrps mtqp mupdate news nfs nntp opaquelocktoken pop pres rtsp service shttp sip sips snmp soap.beep soap.beeps tag tel telnet tftp thismessage tip tv urn vemmi xmlrpc.beep xmlrpc.beeps z39.50r z39.50s about cvs daap ed2k feed fish git iax2 irc ircs ldaps magnet mms rsync ssh svn sftp smb webcal', _('Valid uri schemes. Only schemes in this list will be accepted as "real" uri. (mailto and xmpp are handled separately)'), True],
    272272                'ask_offline_status_on_connection': [ opt_bool, False, _('Ask offline status message to all offline contacts when connection to an accoutn is established. WARNING: This causes a lot of requests to be sent!') ],
     273        'show_offline_with_status_message': [ opt_bool, False, _('Shows in roster offline contacts with status message even if option "show offline contacts" is disabled') ],
    273274        }
    275276        __options_per_key = {
  • src/roster_window.py

    14391439                if contact.show in ('offline', 'error'):
    14401440                        if contact.jid in gajim.to_be_removed[account]:
    14411441                                return True
     1442                        if gajim.config.get('show_offline_with_status_message'):
     1443                                if contact.status:
     1444                                        return True
    14421445                        return False
    14431446                if gajim.config.get('show_only_chat_and_online') and contact.show in (
    14441447                'away', 'xa', 'busy'):