Skip to content
Snippets Groups Projects
Unverified Commit 30c3782e authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

regression: fix notifyDesktopUser (#28659)

parent fd2f4c5e
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,8 @@ import { settings } from '../../../../settings/server';
* @param {number} duration Duration of notification
* @param {string} notificationMessage The message text to send on notification body
*/
export function notifyDesktopUser({ userId, user, message, room, duration, notificationMessage }) {
const { title, text } = roomCoordinator.getRoomDirectives(room.t).getNotificationDetails(room, user, notificationMessage, userId);
export async function notifyDesktopUser({ userId, user, message, room, duration, notificationMessage }) {
const { title, text } = await roomCoordinator.getRoomDirectives(room.t).getNotificationDetails(room, user, notificationMessage, userId);
const payload = {
title,
......
......@@ -95,7 +95,7 @@ export const sendNotification = async ({
isThread,
})
) {
notifyDesktopUser({
await notifyDesktopUser({
notificationMessage,
userId: subscription.u._id,
user: sender,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment