From 2b1dcbb2607eef9ac7f37cc4297e2c12b7b92a4d Mon Sep 17 00:00:00 2001 From: Gil Eluard Date: Mon, 5 Sep 2022 13:21:59 +0200 Subject: [PATCH] Reset allChatsOnboardingHasBeenDisplayed on logout --- Riot/Modules/Application/LegacyAppDelegate.m | 3 +++ changelog.d/6676.change | 1 + 2 files changed, 4 insertions(+) create mode 100644 changelog.d/6676.change diff --git a/Riot/Modules/Application/LegacyAppDelegate.m b/Riot/Modules/Application/LegacyAppDelegate.m index f574fc6e4..663246dff 100644 --- a/Riot/Modules/Application/LegacyAppDelegate.m +++ b/Riot/Modules/Application/LegacyAppDelegate.m @@ -2196,6 +2196,9 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni // Logout all matrix account [[MXKAccountManager sharedManager] logoutWithCompletion:^{ + // We reset allChatsOnboardingHasBeenDisplayed flag on logout + RiotSettings.shared.allChatsOnboardingHasBeenDisplayed = NO; + if (completion) { completion (YES); diff --git a/changelog.d/6676.change b/changelog.d/6676.change new file mode 100644 index 000000000..bb8b3e164 --- /dev/null +++ b/changelog.d/6676.change @@ -0,0 +1 @@ +Reset allChatsOnboardingHasBeenDisplayed on logout