Open MadLittleMods opened 2 years ago
This not working as expected is a Defect, not an Enhancement request
Even if the room is not immediately moved out of favorites, having at least the checkbox appear / disappear as a sign that the click was registered would already improve things. I'm absolutely sure this used to work better.
Problem
When favoriting or unfavoriting a room, it takes multiple seconds before the room list updates. I assume this is due to us waiting for requests to fly around but there seems to be something more weird going on.
Often times, I have to do the favorite action multiple times (even waiting for
/sync
to settle) in between. I can see them.favourite
request succeed but the UI does not update.Relevant requests:
PUT /_matrix/client/r0/user/%40madlittlemods%3Amatrix.org/rooms/!abc/tags/m.favourite
DELETE /_matrix/client/r0/user/%40madlittlemods%3Amatrix.org/rooms/!abc/tags/m.favourite
Potential solutions
When favoriting rooms, optimistically update the UI. Or at the minimum, update the UI when we see the
m.favourite
requests succeed. (local echo)Related issues
Logs
Logs in case that helps: https://github.com/matrix-org/element-web-rageshakes/issues/11073