Skip to content

Commit

Permalink
fix createBrowserNotificationIfPermitted()
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Jan 22, 2025
1 parent eaf63c3 commit 4e95c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/browserNotifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const createBrowserNotificationIfPermitted = (router, chatId, chatName, c
notificationObject,
);

const shouldAddMessageId = hasLength(`${messageId}`);
const shouldAddMessageId = !!messageId;
let hash = undefined;
if (shouldAddMessageId) {
hash = messageIdHashPrefix + messageId;
Expand Down

0 comments on commit 4e95c8a

Please sign in to comment.