-
Notifications
You must be signed in to change notification settings - Fork 59
Description
is there a way to manage sessions? I have the following scenario:
User A and User B are talking
User B falls off a cliff
User B gets back online, but has different instance tags so User A ignores him.
One way of solving this:
User A's OTR instance can notify it about query messages, e.g. via an event 'query'. Then User A can create a new OTR instance to respond to that new connection
Do you know of a better way?
EDIT: skimmed over OTR spec...it's long :) Here's another option I see, though I'm not sure I see confirmation in the spec:
When receiving a "query" message, if you already know the other party's instance tags, then in addition to re-initializing AKE, like the code already does, reset this.their_instance_tag. Otherwise continuing with AKE has no chance of succeeding.
EDIT: oof, another obvious solution is having persistent instance tags. But if for the sake of argument you don't use persistent instance tags?