π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use Space sender for notification emails
Anand Baburajanb9ed03c5f550
diff --git a/server/space/controller/notifications.go b/server/space/controller/notifications.goindex 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",- "[email protected]",+ "Ente Space",+ "[email protected]",subject,spaceNotificationTemplate,templateData,diff --git a/server/space/controller/notifications_test.go b/server/space/controller/notifications_test.goindex 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}