brawl-chat
brawl-chat copied to clipboard
Timeline does not update even though sync is running
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.
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.