Skip to content

Commit 945ba69

Browse files
author
Vikas Agarwal
committed
Fixed issue with missing user names for messaging notifications
1 parent d1ae6bb commit 945ba69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect/connectNotificationServer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ const handler = (topic, message, logger, callback) => {
340340
notification.contents.timestamp = (new Date()).toISOString();
341341
// if found a user then add user handle
342342
if (users.length) {
343-
const affectedUser = _.find(users, u => u.userId === message.userId);
344-
const initiatorUser = _.find(users, u => u.userId === message.initiatorUserId);
343+
const affectedUser = _.find(users, u => `${u.userId}` === message.userId);
344+
const initiatorUser = _.find(users, u => `${u.userId}` === message.initiatorUserId);
345345
if (affectedUser) {
346346
notification.contents.userHandle = affectedUser.handle;
347347
notification.contents.userFullName = `${affectedUser.firstName} ${affectedUser.lastName}`;

0 commit comments

Comments
 (0)