Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32901299
D6922.1768188624.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D6922.1768188624.diff
View Options
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
@@ -169,7 +169,7 @@
// It was agreed to temporarily make even releases staff-only. This way
// we will be able to prevent shipping NSE functionality to public iOS
// users until it is thoroughly tested among staff members.
- if (codeVersion && codeVersion > 1000 && codeVersion % 2 === 0) {
+ if (codeVersion && codeVersion > 198 && codeVersion % 2 === 0) {
notification.mutableContent = true;
notification.pushType = 'alert';
notification.badge = unreadCount;
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
@@ -632,7 +632,7 @@
// users until it is thoroughly tested among staff members.
if (
platformDetails.codeVersion &&
- platformDetails.codeVersion > 1000 &&
+ platformDetails.codeVersion > 198 &&
platformDetails.codeVersion % 2 === 0
) {
notification.mutableContent = true;
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
@@ -54,7 +54,6 @@
#import <UserNotifications/UserNotifications.h>
-NSString *const backgroundNotificationTypeKey = @"backgroundNotifType";
NSString *const setUnreadStatusKey = @"setUnreadStatus";
NSString *const threadIDKey = @"threadID";
@@ -173,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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 12, 3:30 AM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5921508
Default Alt Text
D6922.1768188624.diff (3 KB)
Attached To
Mode
D6922: Permanently enable rescind and visible notifications processing via NotificationService
Attached
Detach File
Event Timeline
Log In to Comment