add notificationId to every broadcast notification
This commit is contained in:
@@ -29,7 +29,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
|
||||
handleNotification(event.notificationId,`Vous avez été désassigné de la tâche ${event.task.name} de l'événement ${event.event.name}.`);
|
||||
})
|
||||
.listen('.volunteer.role.updated', (event) => {
|
||||
handleNotification(`Votre rôle a changé pour : ${event.role} `);
|
||||
handleNotification(event.notificationId, `Votre rôle a changé pour : ${event.role} `);
|
||||
})
|
||||
.listen('.task.date.updated', (event) => {
|
||||
handleNotification(event.notificationId,`La date de la tâche ${event.task.name} de l'événement ${event.event.name} à été mis à jour. Cette tâche aura maintenant lieu du ${event.start} au ${event.end}.`);
|
||||
|
||||
Reference in New Issue
Block a user