plugin OTR: forces FINISHED state if we are in ENCRYPTED state on contact disconnection
This commit is contained in:
parent
c1e71508c4
commit
af2554a508
1 changed files with 21 additions and 0 deletions
|
|
@ -328,6 +328,10 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
|
|||
int(priority), statuses,
|
||||
self.parent.profile)
|
||||
|
||||
# uncomment these two lines if you need the trigger
|
||||
#if not self.host.trigger.point("presenceReceived", entity, "unavailable", 0, statuses, self.parent.profile):
|
||||
# return
|
||||
|
||||
# now it's time to notify frontends
|
||||
self.host.bridge.presenceUpdate(entity.full(), show or "",
|
||||
int(priority), statuses,
|
||||
|
|
@ -344,6 +348,9 @@ class SatPresenceProtocol(xmppim.PresenceClientProtocol):
|
|||
del statuses[None]
|
||||
self.host.memory.setPresenceStatus(entity, "unavailable", 0, statuses, self.parent.profile)
|
||||
|
||||
if not self.host.trigger.point("presenceReceived", entity, "unavailable", 0, statuses, self.parent.profile):
|
||||
return
|
||||
|
||||
# now it's time to notify frontends
|
||||
self.host.bridge.presenceUpdate(entity.full(), "unavailable", 0, statuses, self.parent.profile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue