Skip to content

Commit

Permalink
[TMP] Force-disable "open at first unread" setting
Browse files Browse the repository at this point in the history
This feature is really dangerous (i.e. often leads to broken timelines)
in combination with element-hq#5092.

Change-Id: Ib9c6b4e0e8cba19f438690c64195724a93735584
  • Loading branch information
SpiritCroc committed Feb 20, 2022
1 parent 08ac537 commit f06ae84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ class VectorPreferences @Inject constructor(private val context: Context, privat

// SC addition
fun loadRoomAtFirstUnread(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_OPEN_CHATS_AT_FIRST_UNREAD, false)
// https://github.com/vector-im/element-android/issues/5092
return false // defaultPrefs.getBoolean(SETTINGS_OPEN_CHATS_AT_FIRST_UNREAD, false)
}

// Element removed this, SC added it back (but this time, default to true)
Expand Down
1 change: 1 addition & 0 deletions vector/src/main/res/xml/vector_settings_labs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<!--android:title="@string/settings_labs_enable_send_voice" />-->

<im.vector.app.core.preference.VectorSwitchPreference
android:enabled="false"
android:defaultValue="false"
android:key="SETTINGS_OPEN_CHATS_AT_FIRST_UNREAD"
android:title="@string/settings_open_chats_at_first_unread"
Expand Down

0 comments on commit f06ae84

Please sign in to comment.