mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 05:23:09 +02:00
Fix #6676
This commit is contained in:
parent
ed141338fb
commit
493d32b3dc
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export async function createNotification(
|
|||
|
||||
const profile = await UserProfiles.findOne({ userId: notifieeId });
|
||||
|
||||
const isMuted = !profile?.includingNotificationTypes?.includes(type);
|
||||
const isMuted = !(profile?.includingNotificationTypes === null || profile?.includingNotificationTypes.includes(type));
|
||||
|
||||
// Create notification
|
||||
const notification = await Notifications.save({
|
||||
|
|
Loading…
Reference in a new issue