mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Fix multi-account announcement never being displayed
This commit is contained in:
committed by
Benoit Marty
parent
86e72ac11e
commit
72f4c4f897
+2
-2
@@ -40,11 +40,11 @@ class DefaultAnnouncementStore(
|
||||
// NOT replay on first launch.
|
||||
// - Fullscreen.Space is disabled
|
||||
// - NewNotificationSound is opted in by AppMigration08
|
||||
// - MultiAccount is opted in by AppMigration11
|
||||
// - MultiAccount is NeverShown by default, AppMigration11 sets it to Show or Shown.
|
||||
val defaultStatus = when (announcement) {
|
||||
Announcement.Fullscreen.Space -> AnnouncementStatus.Shown
|
||||
Announcement.NewNotificationSound -> AnnouncementStatus.Shown
|
||||
Announcement.MultiAccount -> AnnouncementStatus.Shown
|
||||
Announcement.MultiAccount -> AnnouncementStatus.NeverShown
|
||||
}
|
||||
return store.data.map { prefs ->
|
||||
val ordinal = prefs[key] ?: defaultStatus.ordinal
|
||||
|
||||
Reference in New Issue
Block a user