brawl-chat icon indicating copy to clipboard operation
brawl-chat copied to clipboard

Timeline does not update even though sync is running

Open bwindels opened this issue 6 years ago • 1 comments

Timeline stopped showing new incoming message. Clicking the room tile again (several times? can't remember) refreshed the timeline. Might have clicked the room tile quite a few times before and/or have scrolled up/filled gaps before this happened.

Confirmed sync was running with the devtools. No errors in the console.

Did something close the timeline (e.g. disposed the TimelineViewModel?) this is on bwindels/reconnect btw.

bwindels avatar May 07 '20 10:05 bwindels

I checked several code paths and couldn't think of a way that the timeline would get closed while still looking at it. Added some logging though to see if it happens.

  • the timeline gets closed in SessionViewModel._openRoom when calling disposeTracked.
  • we unsubscribe from the timeline when unmounting the ListView, but that should only happen when emitting a change of the currentRoom a bit later in that method.

bwindels avatar May 07 '20 18:05 bwindels