element-android icon indicating copy to clipboard operation
element-android copied to clipboard

Space automatically selected on startup

Open timokoesters opened this issue 2 years ago • 3 comments

Element Android automatically selects the first space when you start the application, causing a lot of confusion.

PS: It would help if Element could make it clearer that the current view is filtered by a space, for example by coloring the background of the top part of the app.

timokoesters avatar Feb 07 '23 21:02 timokoesters

Is there a way to make it stop opening a space by default?

TommyTran732 avatar Jan 21 '25 02:01 TommyTran732

Culprit appears to be this piece of code that switches spaces every time user taps on a notification from a specific space:

https://github.com/element-hq/element-android/blob/c3b923c27def396c0ee42f179602d6ac98b63141/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt#L244

There was a setting to disable this behavior, but it appears that the toggle has not been added in the last settings rewrite.

matejdro avatar Jun 04 '25 09:06 matejdro

Found a workaround, but it requires root:

  1. Open /data/data/im.vector.app/shared_prefs/im.vector.app_preferences.xml with the text editor
  2. Set SETTINGS_PREF_SPACE_SHOW_ALL_ROOM_IN_HOME to true
  3. Force stop Element & re-open it

matejdro avatar Jun 11 '25 05:06 matejdro