From d6dc900a9b14c8197fe6ee66a394dfbb39b6aec3 Mon Sep 17 00:00:00 2001 From: Doug Date: Thu, 12 Aug 2021 09:35:30 +0100 Subject: [PATCH] Update the value of notificationBodyLocalizationKey to "NOTIFICATION". --- Riot/Modules/Application/LegacyAppDelegate.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Riot/Modules/Application/LegacyAppDelegate.m b/Riot/Modules/Application/LegacyAppDelegate.m index a6df6cb48..7fb2ae40f 100644 --- a/Riot/Modules/Application/LegacyAppDelegate.m +++ b/Riot/Modules/Application/LegacyAppDelegate.m @@ -1910,6 +1910,9 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni // Add observer on settings changes. [[MXKAppSettings standardAppSettings] addObserver:self forKeyPath:@"showAllEventsInRoomHistory" options:0 context:nil]; + // Override the default notification content. This must happen before the account manager prepares the session. + MXKAppSettings.standardAppSettings.notificationBodyLocalizationKey = @"NOTIFICATION"; + // Prepare account manager MXKAccountManager *accountManager = [MXKAccountManager sharedManager];