Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use Space sender for notification emails

Anand Baburajanb9ed03c5f550
diff --git a/server/space/controller/notifications.go b/server/space/controller/notifications.go
index df5693e9f8..daaa05d514 100644
--- a/server/space/controller/notifications.go
+++ b/server/space/controller/notifications.go
@@ -117,8 +117,8 @@ func (n *SpaceEmailSender) send(actorUserID int64, actorSlug, action, event stri
}
if err := sendSpaceNotificationEmail(
[]string{user.Email},
- "Ente",
+ "Ente Space",
subject,
spaceNotificationTemplate,
templateData,
diff --git a/server/space/controller/notifications_test.go b/server/space/controller/notifications_test.go
index 6a9fba6486..1178c0e657 100644
--- a/server/space/controller/notifications_test.go
+++ b/server/space/controller/notifications_test.go
@@ -119,7 +119,9 @@ func TestSpaceEmailSenderLimitsEachSenderToFiftyEmailsPerHour(t *testing.T) {
sendSpaceNotificationEmail = originalSend
})
sent := 0
- sendSpaceNotificationEmail = func(_ []string, _ string, _ string, _ string, _ string, _ map[string]interface{}, _ []map[string]interface{}) error {
+ sendSpaceNotificationEmail = func(_ []string, fromName string, fromEmail string, _ string, _ string, _ map[string]interface{}, _ []map[string]interface{}) error {
+ require.Equal(t, "Ente Space", fromName)
+ require.Equal(t, "[email protected]", fromEmail)
sent++
return nil
}