element-hq / element-web

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

`develop.element.io` with Spaces enabled switching rooms and spaces on its own #17017

Closed tanriol closed 3 years ago

tanriol commented 3 years ago

Description

After a recent develop.elements.io update my develop.element.io client with Spaces enabled got stuck in an infinite loop switching between rooms and spaces on its own without any additional user input. I've got a number of private spaces for grouping rooms and the loop involves at least one room included in more than one space and both spaces that include it.

The weird switching started before the loop and looked like this:

Environment

develop.element.io with Spaces enabled, Firefox Nightly, Linux The problem started after an update that included https://github.com/matrix-org/matrix-react-sdk/pull/5795, which looks like a likely cause, so cc @SimonBrandner @t3chguy

SimonBrandner commented 3 years ago

I'd like to apologize to anyone who has been affected by this. It looks like something I have encountered before but wasn't able to repro then.

@tanriol, could you please try out the live preview here when it's available and confirm that it solves the problem?

I am still having issue trying to find an exact repro case

SimonBrandner commented 3 years ago

@tanriol, here is the live preview. Could you please try? It sometimes takes some time to load so be patient please

SimonBrandner commented 3 years ago

To reproduce:

tanriol commented 3 years ago

I haven't managed to reproduce the problem in the live preview. However, note that the "Manage and Explore" context menu entry on another space is useless with this feature because it causes a space switch and then a room switch to the remembered one.

SimonBrandner commented 3 years ago

Yeah, this is a bug

tanriol commented 3 years ago

Also I'm not sure how to get out to normal state now - "Clear cache and reload" does not seem to kill this remembered room and your fix is in the save path, not load, so it probably won't do that. Looks like I'll need to clear site data completely.

SimonBrandner commented 3 years ago

Once again I am really sorry about this. Hit F12 → Go to Storage → Go to Local Storage → And delete everything that begins with mx_last_viewed_rooms_

Screenshot_20210420_161839

SimonBrandner commented 3 years ago

If anyone has any further problems with this, please visit this room