fix: add type checking on notificationType (#5376)
* add typecheking on notificationType * add typecheking using instanceOf
This commit is contained in:
parent
413377fa63
commit
e295cbbcc6
|
@ -97,7 +97,7 @@ public class CustomPushNotification extends PushNotification {
|
||||||
bundle.putString("senderId", hasSender ? loadedEjson.sender._id : "1");
|
bundle.putString("senderId", hasSender ? loadedEjson.sender._id : "1");
|
||||||
bundle.putString("avatarUri", loadedEjson.getAvatarUri());
|
bundle.putString("avatarUri", loadedEjson.getAvatarUri());
|
||||||
|
|
||||||
if (loadedEjson.notificationType.equals("videoconf")) {
|
if (loadedEjson.notificationType instanceof String && loadedEjson.notificationType.equals("videoconf")) {
|
||||||
notifyReceivedToJS();
|
notifyReceivedToJS();
|
||||||
} else {
|
} else {
|
||||||
notificationMessages.get(notId).add(bundle);
|
notificationMessages.get(notId).add(bundle);
|
||||||
|
|
Loading…
Reference in New Issue