-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Room list ordering isn't always stable #66
Comments
Interesting, I was able to reproduce the problem on 0.0.33 with logging captured and the room that become unread didn't show up in the sorting log after going to another one... bug in sorter or observable collections? |
I think the I stepped through that code path though and it did trigger a resort... |
It's not this, the resort logs appear above "close timeline for room x" |
The problem seems to be indeed a timestamp being undefined. The above PR fixes that but we'll need further testing to see if this actually solves it. Also, we need to figure out why the timestamp is undefined. Did |
This seems fixed now |
Sometimes when you close a room/go to another one that was unread, the room you left goes all the way to the bottom or somewhere close.
One reason could be that the properties of the room have changed without causing a rerendering somehow, so what you see isn't what is being sorted anymore. Unsure how that could happen though.
Another reason could be that lastMessageTimestamp ends up something else than null or a number (e.g. undefined).
The text was updated successfully, but these errors were encountered: