From 86db02947ec6be7bfdae26845384faaa5e851f61 Mon Sep 17 00:00:00 2001 From: Munkh-Orgil Date: Wed, 21 Aug 2019 10:32:01 +0800 Subject: [PATCH] fix(notification): sending notification to current user close #1198 --- src/data/resolvers/mutations/conversations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/resolvers/mutations/conversations.ts b/src/data/resolvers/mutations/conversations.ts index 2840d0d4e..9776ce551 100644 --- a/src/data/resolvers/mutations/conversations.ts +++ b/src/data/resolvers/mutations/conversations.ts @@ -120,7 +120,7 @@ const sendNotifications = async ({ switch (type) { case NOTIFICATION_TYPES.CONVERSATION_ADD_MESSAGE: doc.action = `sent you a message`; - doc.receivers = conversationNotifReceivers(conversation, user._id, false); + doc.receivers = conversationNotifReceivers(conversation, user._id); break; case NOTIFICATION_TYPES.CONVERSATION_ASSIGNEE_CHANGE: doc.action = 'has assigned you to conversation ';