Changeset 8980

Show
Ignore:
Timestamp:
11/16/07 11:51:52 (13 months ago)
Author:
asterix
Message:

detect when we get our own presences

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r8927 r8980  
    20252025                                except exceptions.PysqliteOperationalError, e: 
    20262026                                        self.dispatch('ERROR', (_('Disk Write Error'), str(e))) 
    2027                         self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio, 
    2028                                 keyID, timestamp, contact_nickname)) 
     2027                        our_jid = gajim.get_jid_from_account(self.name) 
     2028                        if jid_stripped == our_jid and resource == self.server_resource: 
     2029                                # We got our own presence 
     2030                                self.dispatch('STATUS', show) 
     2031                        else: 
     2032                                self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio, 
     2033                                        keyID, timestamp, contact_nickname)) 
    20292034        # END presenceCB 
    20302035