Skip to content

Loading indicator slow to go away when returning to app, though in fact up to date #979

Open
@PIG208

Description

@PIG208

We added a loading indicator in #852 that appears when even queue polling fails with any error.

However, it seems that the loading indicator can stay on even the event queue is doing fine, and does not go away until you get a new event.

I don't have a consistent way to reproduce this, but what I did was basically:

  1. Leave the app on and lock the phone
  2. After a while, unlock the phone
  3. Observe if the loading indicator stays there longer than usual
  4. Try to do something (like starring a message), and the loading indicator should go away promptly

My guess is that when the event queue goes stale, isLoading gets set to true. When we do get the new event queue, we do not set isLoading back to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-apiImplementing specific parts of the Zulip server APIa-syncEvent queue; retry; local echo; racesbeta feedbackThings beta users have specifically asked for

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions