From f06ae844dcfcf0768248139a75d466e341e07fa6 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sun, 20 Feb 2022 15:03:20 +0100 Subject: [PATCH] [TMP] Force-disable "open at first unread" setting This feature is really dangerous (i.e. often leads to broken timelines) in combination with https://github.com/vector-im/element-android/issues/5092. Change-Id: Ib9c6b4e0e8cba19f438690c64195724a93735584 --- .../java/im/vector/app/features/settings/VectorPreferences.kt | 3 ++- vector/src/main/res/xml/vector_settings_labs.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt index d5a01c00cb..c601edc358 100755 --- a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt @@ -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) diff --git a/vector/src/main/res/xml/vector_settings_labs.xml b/vector/src/main/res/xml/vector_settings_labs.xml index f43c75a81b..b63f74499e 100644 --- a/vector/src/main/res/xml/vector_settings_labs.xml +++ b/vector/src/main/res/xml/vector_settings_labs.xml @@ -35,6 +35,7 @@