parent
f104e9b6cc
commit
df71dbb024
9 changed files with 36 additions and 17 deletions
|
@ -16,7 +16,7 @@ export async function createNotification(
|
|||
|
||||
const profile = await UserProfiles.findOne({ userId: notifieeId });
|
||||
|
||||
const isMuted = !(profile?.includingNotificationTypes == null || profile?.includingNotificationTypes.includes(type));
|
||||
const isMuted = profile?.mutingNotificationTypes.includes(type);
|
||||
|
||||
// Create notification
|
||||
const notification = await Notifications.save({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue