fix: add type checking on notificationType (#5376)

* add typecheking on notificationType

* add typecheking using instanceOf
This commit is contained in:
Gleidson Daniel Silva 2023-12-01 13:41:01 -03:00 committed by GitHub
parent 413377fa63
commit e295cbbcc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class CustomPushNotification extends PushNotification {
bundle.putString("senderId", hasSender ? loadedEjson.sender._id : "1");
bundle.putString("avatarUri", loadedEjson.getAvatarUri());
if (loadedEjson.notificationType.equals("videoconf")) {
if (loadedEjson.notificationType instanceof String && loadedEjson.notificationType.equals("videoconf")) {
notifyReceivedToJS();
} else {
notificationMessages.get(notId).add(bundle);