Skip to content

Commit 4a666ef

Browse files
author
Vikas Agarwal
committed
Trying to handle different copy for affected user
1 parent 450f415 commit 4a666ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

connect/notificationServices/email.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ function handler(topicName, messageJSON, notification) {
233233
authorFullName: notification.contents.userFullName,
234234
photoURL: notification.contents.photoURL,
235235
type: notificationType,
236+
emailToAffectedUser: notification.contents.userEmail === userEmail,
236237
},
237238
recipients,
238239
version:"v3",

emails/src/partials/project-team.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
<strong>{{userFullName}}</strong> joined the project as Manager
4646
{{/if}}
4747
{{#if [notifications.connect.project.member.removed]}}
48-
<strong>{{userFullName}}</strong> left the project
48+
{{#if [emailToAffectedUser]}}
49+
You are removed from the project
50+
{{else}}
51+
<strong>{{userFullName}}</strong> left the project
52+
{{/if}}
4953
{{/if}}
5054
{{#if [notifications.connect.project.member.left]}}
5155
<strong>{{userFullName}}</strong> left the project

0 commit comments

Comments
 (0)