detect when we get our own presences
This commit is contained in:
parent
11e581fb8b
commit
a5e8adf232
|
@ -2024,6 +2024,11 @@ returns the session that we last sent a message to.'''
|
|||
gajim.logger.write('status', jid_stripped, status, show)
|
||||
except exceptions.PysqliteOperationalError, 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,
|
||||
keyID, timestamp, contact_nickname))
|
||||
# END presenceCB
|
||||
|
|
Loading…
Reference in New Issue