Skip to content

Commit fb8dd98

Browse files
authored
feat: Ignore VoIP notifications (#7055)
1 parent 2e46ce6 commit fb8dd98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/app/src/main/java/chat/rocket/reactnative/notification/CustomPushNotification.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ private void handleNotification() {
112112
return; // Exit early, notification will be processed in callback
113113
}
114114

115+
if (receivedEjson != null && receivedEjson.notificationType != null && receivedEjson.notificationType.equals("voip")) {
116+
Log.d(TAG, "Notification is a voip notification, ignoring");
117+
return;
118+
}
119+
115120
// For non-message-id-only notifications, process immediately
116121
processNotification();
117122
}

0 commit comments

Comments
 (0)