Page MenuHomePhorge

D6922.1768188744.diff
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

D6922.1768188744.diff

diff --git a/keyserver/src/push/rescind.js b/keyserver/src/push/rescind.js
--- a/keyserver/src/push/rescind.js
+++ b/keyserver/src/push/rescind.js
@@ -166,7 +166,7 @@
codeVersion: codeVersion ?? undefined,
});
- if (codeVersion && codeVersion > 1000 && codeVersion % 2 === 0) {
+ if (codeVersion && codeVersion % 2 === 0) {
notification.mutableContent = true;
notification.pushType = 'alert';
notification.body = 'PLACEHOLDER';
diff --git a/keyserver/src/push/send.js b/keyserver/src/push/send.js
--- a/keyserver/src/push/send.js
+++ b/keyserver/src/push/send.js
@@ -634,11 +634,7 @@
notification.pushType = 'alert';
notification.payload.id = uniqueID;
notification.payload.threadID = threadInfo.id;
- if (
- platformDetails.codeVersion &&
- platformDetails.codeVersion > 1000 &&
- platformDetails.codeVersion % 2 === 0
- ) {
+ if (platformDetails.codeVersion && platformDetails.codeVersion % 2 === 0) {
notification.mutableContent = true;
}
if (collapseKey) {
diff --git a/native/ios/Comm/AppDelegate.mm b/native/ios/Comm/AppDelegate.mm
--- a/native/ios/Comm/AppDelegate.mm
+++ b/native/ios/Comm/AppDelegate.mm
@@ -172,43 +172,11 @@
didReceiveRemoteNotification:(NSDictionary *)notification
fetchCompletionHandler:
(void (^)(UIBackgroundFetchResult))completionHandler {
- BOOL handled = NO;
- if (notification[@"aps"][@"content-available"] &&
- notification[backgroundNotificationTypeKey]) {
- handled = [self handleBackgroundNotification:notification
- fetchCompletionHandler:completionHandler];
- }
-
- if (handled) {
- return;
- }
[CommIOSNotifications didReceiveRemoteNotification:notification
fetchCompletionHandler:completionHandler];
}
-- (BOOL)handleBackgroundNotification:(NSDictionary *)notification
- fetchCompletionHandler:
- (void (^)(UIBackgroundFetchResult))completionHandler {
- if ([notification[backgroundNotificationTypeKey] isEqualToString:@"CLEAR"]) {
- if (notification[setUnreadStatusKey] && notification[@"threadID"]) {
- std::string threadID =
- std::string([notification[@"threadID"] UTF8String]);
- // this callback may be called from inactive state so we need
- // to initialize the database
- [self attemptDatabaseInitialization];
- comm::GlobalDBSingleton::instance.scheduleOrRun([threadID]() mutable {
- comm::ThreadOperations::updateSQLiteUnreadStatus(threadID, false);
- });
- }
- [CommIOSNotifications
- clearNotificationFromNotificationsCenter:notification[@"notificationId"]
- completionHandler:completionHandler];
- return YES;
- }
- return NO;
-}
-
- (UIInterfaceOrientationMask)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(UIWindow *)window {
return [Orientation getOrientation];

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 12, 3:32 AM (8 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5921516
Default Alt Text
D6922.1768188744.diff (2 KB)

Event Timeline