mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 23:47:44 +02:00
Push notifications: Avoid any automatic deactivation
vector-im/riot-ios#3017
This commit is contained in:
@@ -14,6 +14,7 @@ Improvements:
|
||||
Bug fix:
|
||||
* Fix error when joining some public rooms, thanks to @chrismoos (PR #2888).
|
||||
* Fix crash due to malformed widget (#2997).
|
||||
* Push notifications: Avoid any automatic deactivation (vector-im/riot-ios#3017).
|
||||
|
||||
Changes in 0.10.4 (2019-12-11)
|
||||
===============================================
|
||||
|
||||
+6
-2
@@ -2125,9 +2125,13 @@ NSString *const AppDelegateDidValidateEmailNotificationClientSecretKey = @"AppDe
|
||||
{
|
||||
NSLog(@"[AppDelegate][Push] clearPushNotificationToken: Clear existing token");
|
||||
|
||||
// XXX: The following code has been commented to avoid automatic deactivation of push notifications
|
||||
// There may be a race condition here where the clear happens after the update of the new push token.
|
||||
// We have no evidence of this. This is a safety measure.
|
||||
|
||||
// Clear existing token
|
||||
MXKAccountManager* accountManager = [MXKAccountManager sharedManager];
|
||||
[accountManager setPushDeviceToken:nil withPushOptions:nil];
|
||||
//MXKAccountManager* accountManager = [MXKAccountManager sharedManager];
|
||||
//[accountManager setPushDeviceToken:nil withPushOptions:nil];
|
||||
}
|
||||
|
||||
// Remove delivred notifications for a given room id except call notifications
|
||||
|
||||
Reference in New Issue
Block a user