detect when we get our own presences

This commit is contained in:
Yann Leboulanger 2007-11-16 10:51:52 +00:00
parent 11e581fb8b
commit a5e8adf232
1 changed files with 7 additions and 2 deletions

View File

@ -2024,6 +2024,11 @@ returns the session that we last sent a message to.'''
gajim.logger.write('status', jid_stripped, status, show) gajim.logger.write('status', jid_stripped, status, show)
except exceptions.PysqliteOperationalError, e: except exceptions.PysqliteOperationalError, e:
self.dispatch('ERROR', (_('Disk Write Error'), str(e))) self.dispatch('ERROR', (_('Disk Write Error'), str(e)))
our_jid = gajim.get_jid_from_account(self.name)
if jid_stripped == our_jid and resource == self.server_resource:
# We got our own presence
self.dispatch('STATUS', show)
else:
self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio, self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio,
keyID, timestamp, contact_nickname)) keyID, timestamp, contact_nickname))
# END presenceCB # END presenceCB