Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Update template

Neeraj Guptab6d9527f1df5
diff --git a/server/mail-templates/legacy/legacy_invite.html b/server/mail-templates/legacy/legacy_invite.html
index ecb4f8d097..dc59ad1637 100644
--- a/server/mail-templates/legacy/legacy_invite.html
+++ b/server/mail-templates/legacy/legacy_invite.html
@@ -1,9 +1,10 @@
{{define "content"}}
<p>Hey {{.TrustedUser}}!</p>
-<p><strong>{{.LegacyUser}}</strong> has invited you as a trusted contact.</br>Please open our mobile app to accept or reject their invite.</p>
+<p><strong>{{.LegacyUser}}</strong> has invited you to be their trusted contact. </p>
-<p>Navigate to <strong>Settings -> Accounts -> Legacy</strong> to proceed further.</p>
+<p> As a trusted contact, you can recover {{.LegacyUser}}'s account in their absence. </p>
+<p>To accept the invite, please open the Ente Photos app, and navigate to <strong>Settings -> Account -> Legacy </strong>. </p>
-<p>If you need help with anything, please write back!</p>
-{{end}}
+<p>If you need any help, please reply to this email or write to [email protected]</p>
+{{end}}
\ No newline at end of file
diff --git a/server/pkg/controller/emergency/email.go b/server/pkg/controller/emergency/email.go
index 88875f6582..af6a3c649a 100644
--- a/server/pkg/controller/emergency/email.go
+++ b/server/pkg/controller/emergency/email.go
@@ -52,7 +52,7 @@ func (c *Controller) sendNotification(ctx context.Context, legacyUserID int64, t
if newStatus == ente.UserInvitedContact {
templateName = InviteTemplate
- title = "You've been invited to join as trusted contact on Ente!"
+ title = fmt.Sprintf("%s has added you as a Trusted Contact", legacyUser.Email)
emailTo = trustedUser.Email
inlineImage["content"] = HappyHeaderImage
} else if newStatus == ente.UserRevokedContact {