From f63771d1dc32f926ce4277fe31278c6f30937dd5 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:04:01 +0000 Subject: [PATCH] Enable Element Call FF by default. (#1983) - Aligns with the same change on Android. - Remove the now unused FF for mention pills. --- ElementX/Sources/Application/AppSettings.swift | 6 +----- ElementX/Sources/Mocks/RoomProxyMock.swift | 2 +- UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png | 4 ++-- .../__Snapshots__/PreviewTests/test_timelineView.1.png | 4 ++-- .../__Snapshots__/PreviewTests/test_uITimelineView.1.png | 4 ++-- changelog.d/1983.feature | 1 + 6 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 changelog.d/1983.feature diff --git a/ElementX/Sources/Application/AppSettings.swift b/ElementX/Sources/Application/AppSettings.swift index a4df3758f..adf224822 100644 --- a/ElementX/Sources/Application/AppSettings.swift +++ b/ElementX/Sources/Application/AppSettings.swift @@ -42,7 +42,6 @@ final class AppSettings { case userSuggestionsEnabled case readReceiptsEnabled case swiftUITimelineEnabled - case mentionsEnabled case appLockFlowEnabled case elementCallEnabled case chatBackupEnabled @@ -269,13 +268,10 @@ final class AppSettings { @UserPreference(key: UserDefaultsKeys.swiftUITimelineEnabled, defaultValue: false, storageType: .volatile) var swiftUITimelineEnabled - @UserPreference(key: UserDefaultsKeys.mentionsEnabled, defaultValue: false, storageType: .userDefaults(store)) - var mentionsEnabled - @UserPreference(key: UserDefaultsKeys.appLockFlowEnabled, defaultValue: false, storageType: .volatile) var appLockFlowEnabled - @UserPreference(key: UserDefaultsKeys.elementCallEnabled, defaultValue: false, storageType: .userDefaults(store)) + @UserPreference(key: UserDefaultsKeys.elementCallEnabled, defaultValue: true, storageType: .userDefaults(store)) var elementCallEnabled @UserPreference(key: UserDefaultsKeys.chatBackupEnabled, defaultValue: false, storageType: .userDefaults(store)) diff --git a/ElementX/Sources/Mocks/RoomProxyMock.swift b/ElementX/Sources/Mocks/RoomProxyMock.swift index e0e56747f..9cd5ee7e6 100644 --- a/ElementX/Sources/Mocks/RoomProxyMock.swift +++ b/ElementX/Sources/Mocks/RoomProxyMock.swift @@ -28,7 +28,7 @@ struct RoomProxyMockConfiguration { var isPublic = Bool.random() var isEncrypted = Bool.random() var isTombstoned = Bool.random() - var isCallOngoing = Bool.random() + var isCallOngoing = false var canonicalAlias: String? var alternativeAliases: [String] = [] var hasUnreadNotifications = Bool.random() diff --git a/UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png index 5fda6a55a..7a1df2094 100644 --- a/UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png +++ b/UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fdc9b2639e1c6867dbc8f3927cb356a238215c71a75b3f489ea69b8eaae5d08f -size 313919 +oid sha256:bd3dd80a72c692d2b326a598bb013fe2d0bdf57d3a802d31804b16f1c7d19b75 +size 318206 diff --git a/UnitTests/__Snapshots__/PreviewTests/test_timelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineView.1.png index 5fda6a55a..7e795dfa7 100644 --- a/UnitTests/__Snapshots__/PreviewTests/test_timelineView.1.png +++ b/UnitTests/__Snapshots__/PreviewTests/test_timelineView.1.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fdc9b2639e1c6867dbc8f3927cb356a238215c71a75b3f489ea69b8eaae5d08f -size 313919 +oid sha256:d6d0c6241d39a889ecaa9c5471857d5e7e63f9998682e04f4e51150dbee96e12 +size 314691 diff --git a/UnitTests/__Snapshots__/PreviewTests/test_uITimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_uITimelineView.1.png index 5fda6a55a..7e795dfa7 100644 --- a/UnitTests/__Snapshots__/PreviewTests/test_uITimelineView.1.png +++ b/UnitTests/__Snapshots__/PreviewTests/test_uITimelineView.1.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fdc9b2639e1c6867dbc8f3927cb356a238215c71a75b3f489ea69b8eaae5d08f -size 313919 +oid sha256:d6d0c6241d39a889ecaa9c5471857d5e7e63f9998682e04f4e51150dbee96e12 +size 314691 diff --git a/changelog.d/1983.feature b/changelog.d/1983.feature new file mode 100644 index 000000000..6a9f9667a --- /dev/null +++ b/changelog.d/1983.feature @@ -0,0 +1 @@ +Enable Element Call for all users. \ No newline at end of file