detect when we get our own presences
This commit is contained in:
parent
11e581fb8b
commit
a5e8adf232
|
@ -2024,8 +2024,13 @@ 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)))
|
||||
self.dispatch('NOTIFY', (jid_stripped, show, status, resource, prio,
|
||||
keyID, timestamp, contact_nickname))
|
||||
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
|
||||
|
||||
def _StanzaArrivedCB(self, con, obj):
|
||||
|
|
Loading…
Reference in New Issue