Skip to content

Commit

Permalink
Fixed displaying notifications for silent pushes.
Browse files Browse the repository at this point in the history
  • Loading branch information
IUADE0BT committed Apr 26, 2022
1 parent f01200f commit 460383d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public boolean handleMessage(Message message) {
propertyHelper().saveInt(MobileMessagingChatProperty.UNREAD_CHAT_MESSAGES_COUNT, unreadChatMessageCount);
inAppChatBroadcaster().unreadMessagesCounterUpdated(unreadChatMessageCount);
coreBroadcaster().messageReceived(message);
if (!isChatWidgetOnForeground()) {
if (!isChatWidgetOnForeground() && !message.isSilent()) {
MobileMessagingCore.getInstance(context).getNotificationHandler().displayNotification(message);
}
MobileMessagingLogger.d("Message with id: " + message.getMessageId() + " will be handled by inAppChat MessageHandler");
Expand Down

0 comments on commit 460383d

Please sign in to comment.