From c2de2e70e64a05bb98a361581b85b6fd04bf8f41 Mon Sep 17 00:00:00 2001 From: Hans Date: Thu, 31 Aug 2023 07:14:32 +0700 Subject: [PATCH] fix Chat - Notification is NOT received in the main device after Control policy was created --- src/libs/Notification/LocalNotification/BrowserNotifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Notification/LocalNotification/BrowserNotifications.js b/src/libs/Notification/LocalNotification/BrowserNotifications.js index e55c0430fe17..a40850b53f54 100644 --- a/src/libs/Notification/LocalNotification/BrowserNotifications.js +++ b/src/libs/Notification/LocalNotification/BrowserNotifications.js @@ -111,7 +111,7 @@ export default { const plainTextMessage = (_.find(message, (f) => f.type === 'COMMENT') || {}).text; if (isChatRoom) { - const roomName = _.get(report, 'displayName', ''); + const roomName = _.get(report, 'reportName', ''); title = roomName; body = `${plainTextPerson}: ${plainTextMessage}`; } else {