Skip to content

Incorrect account connection status #591

Description

@afriedmanGlacier

There are several scenarios where the Buddy status (and therefore isThreadOnline) are not correct.

For example:

  1. 2 users have an active chat. 2nd User closes the app without logging out. 1st user still shows 2nd as active/online (green), and it takes about 10 minutes to change to inactive/offline.
  2. 1st User allows app to go into background for several (3?) minutes. Then 1st user brings app back up. 2nd user now shows as offline even though 2nd user is active/online. Users can send messages to each other, but 1st user still shows 2nd user as inactive/offline and status never gets reset unless user manually logs out and logs back in.

Notes:
There is some code in OTRAppDelegate where it appears that someone started to address this but maybe ran into problems and never completed it. Both applicationWillTerminate and applicationDidBecomeActive have the following commented out line:
//FIXME? [OTRManagedAccount resetAccountsConnectionStatus];

Currently it seems that status can only be set to Active when a "presence" is received from the server, which appears to only happen when a user or a Buddy logs in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions