element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.23k stars 2k forks source link

Favorite room action feels very sluggish and does not always update #21200

Open MadLittleMods opened 2 years ago

MadLittleMods commented 2 years ago

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 the m.favourite request succeed but the UI does not update.

Relevant requests:

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


t3chguy commented 2 years ago

This not working as expected is a Defect, not an Enhancement request

jplatte commented 2 years ago

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.