Marino Faggiana 6 年之前
父節點
當前提交
4a9768fce1

+ 1 - 0
iOSClient/AppDelegate.m

@@ -441,6 +441,7 @@
             if (pushNotification) {
                 switch (pushNotification.type) {
                     case NCPushNotificationTypeComment:
+                    case NCPushNotificationTypeUnknown:
                     {
                         UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[pushNotification bodyForRemoteAlerts] message:nil preferredStyle:UIAlertControllerStyleAlert];
                         UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"_ok_", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {}];

+ 0 - 4
iOSClient/PushNotification/NCPushNotification.h

@@ -24,10 +24,6 @@ extern NSString * const kNCPNTypeCallKey;
 extern NSString * const kNCPNTypeRoomKey;
 extern NSString * const kNCPNTypeChatKey;
 
-extern NSString * const NCPushNotificationJoinChatNotification;
-extern NSString * const NCPushNotificationJoinAudioCallAcceptedNotification;
-extern NSString * const NCPushNotificationJoinVideoCallAcceptedNotification;
-
 @interface NCPushNotification : NSObject
 
 @property (nonatomic, copy) NSString *app;

+ 0 - 7
iOSClient/PushNotification/NCPushNotification.m

@@ -11,8 +11,6 @@
 @implementation NCPushNotification
 
 NSString * const kNCPNAppKey            = @"app";
-NSString * const kNCPNAppIdKey          = @"spreed";
-NSString * const kNCPNAppIdKeyComments  = @"comments";
 NSString * const kNCPNTypeKey           = @"type";
 NSString * const kNCPNSubjectKey        = @"subject";
 NSString * const kNCPNIdKey             = @"id";
@@ -21,11 +19,6 @@ NSString * const kNCPNTypeRoomKey       = @"room";
 NSString * const kNCPNTypeChatKey       = @"chat";
 NSString * const kNCPNTypeCommentKey    = @"comment";
 
-NSString * const NCPushNotificationJoinChatNotification                 = @"NCPushNotificationJoinChatNotification";
-NSString * const NCPushNotificationJoinAudioCallAcceptedNotification    = @"NCPushNotificationJoinAudioCallAcceptedNotification";
-NSString * const NCPushNotificationJoinVideoCallAcceptedNotification    = @"NCPushNotificationJoinVideoCallAcceptedNotification";
-
-
 + (instancetype)pushNotificationFromDecryptedString:(NSString *)decryptedString
 {
     if (!decryptedString) {