diff --git a/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java b/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java index b80dfb7f6..e7e2ad431 100644 --- a/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java +++ b/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java @@ -37,10 +37,13 @@ class JsonResponse { Sender sender; String messageId; String notificationType; + String name; + String messageType; class Sender { - String username; String _id; + String username; + String name; } } } diff --git a/ios/NotificationService/NotificationService.swift b/ios/NotificationService/NotificationService.swift index 28db4ec60..bb5352a59 100644 --- a/ios/NotificationService/NotificationService.swift +++ b/ios/NotificationService/NotificationService.swift @@ -22,11 +22,12 @@ struct PushResponse: Decodable { let messageId: String let notificationType: String? let name: String? + let messageType: String? struct Sender: Decodable, Encodable { let _id: String let username: String - let name: String + let name: String? } } }