[server] Update template

This commit is contained in:
Neeraj Gupta
2024-12-11 16:23:40 +05:30
parent 64594c5077
commit b6d9527f1d
2 changed files with 6 additions and 5 deletions

View File

@@ -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 support@ente.io</p>
{{end}}

View File

@@ -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 {