From 538e9d7e8e1bf6e2d221f869e3180ddbf1e7cde2 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Mon, 2 Oct 2023 14:46:01 -0300 Subject: [PATCH] chore: add verify to videoconf push on android --- .../rocket/reactnative/CustomPushNotification.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java b/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java index 2232517ca..a6c96d55b 100644 --- a/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java +++ b/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java @@ -97,9 +97,13 @@ public class CustomPushNotification extends PushNotification { bundle.putString("senderId", hasSender ? loadedEjson.sender._id : "1"); bundle.putString("avatarUri", loadedEjson.getAvatarUri()); - notificationMessages.get(notId).add(bundle); - postNotification(Integer.parseInt(notId)); - notifyReceivedToJS(); + if (loadedEjson.notificationType == "videoconf") { + notifyReceivedToJS(); + } else { + notificationMessages.get(notId).add(bundle); + postNotification(Integer.parseInt(notId)); + notifyReceivedToJS(); + } } @Override