Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
fix(notification): sending notification to current user
Browse files Browse the repository at this point in the history
close #1198
  • Loading branch information
munkhorgil authored and batamar committed Aug 21, 2019
1 parent fdbbc70 commit 86db029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/resolvers/mutations/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ';
Expand Down

0 comments on commit 86db029

Please sign in to comment.