Show
Ignore:
Timestamp:
06/25/08 11:25:43 (5 months ago)
Author:
asterix
Message:

don't try the old (XEP-018) way to go invisible. It's not XMPP complient. That prevent to show the we are invisible but we are not. Fixes #4012

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9835 r9839  
    44514451                                item.set_image(icon) 
    44524452                                sub_menu.append(item) 
    4453                                 item.connect('activate', self.change_status, account, show) 
     4453                                con = gajim.connections[account] 
     4454                                if show == 'invisible' and con.connected > 1 and \ 
     4455                                not con.privacy_rules_supported: 
     4456                                        item.set_sensitive(False) 
     4457                                else: 
     4458                                        item.connect('activate', self.change_status, account, show) 
    44544459 
    44554460                        item = gtk.SeparatorMenuItem()