π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update Space friend request email copy
Anand Baburajane13619187556
diff --git a/server/space/controller/notifications.go b/server/space/controller/notifications.goindex 0eb35e18f0..85d14b793f 100644--- a/server/space/controller/notifications.go+++ b/server/space/controller/notifications.go@@ -58,7 +58,7 @@ func (n *SpaceEmailSender) OnSpaceFriendAdded(actorSlug string, recipientUserID}func (n *SpaceEmailSender) OnSpaceFriendRequested(actorSlug string, recipientUserID int64) {- n.send(actorSlug, "wants to add you as a friend", spaceNotificationFriendRequested, []int64{recipientUserID})+ n.send(actorSlug, "sent you a friend request", spaceNotificationFriendRequested, []int64{recipientUserID})}func (n *SpaceEmailSender) send(actorSlug, action, event string, recipientUserIDs []int64) {@@ -133,7 +133,7 @@ func spaceEmailNotificationText(event, action string) string {case spaceNotificationFriendAdded:return "is now your friend"case spaceNotificationFriendRequested:- return "wants to add you as a friend"+ return "sent you a friend request"default:return action}diff --git a/server/space/controller/notifications_test.go b/server/space/controller/notifications_test.goindex 9dc375dc66..5856aabed9 100644--- a/server/space/controller/notifications_test.go+++ b/server/space/controller/notifications_test.go@@ -77,7 +77,7 @@ func TestSpaceEmailTemplateData(t *testing.T) {require.Equal(t, "just liked your post", spaceEmailNotificationText(spaceNotificationPostLiked, "liked your post"))require.Equal(t, "just replied to your post", spaceEmailNotificationText(spaceNotificationPostReplied, "replied to your post"))require.Equal(t, "is now your friend", spaceEmailNotificationText(spaceNotificationFriendAdded, "is now your friend"))- require.Equal(t, "wants to add you as a friend", spaceEmailNotificationText(spaceNotificationFriendRequested, "wants to add you as a friend"))+ require.Equal(t, "sent you a friend request", spaceEmailNotificationText(spaceNotificationFriendRequested, "sent you a friend request"))require.Equal(t, spaceNewPostIllustrationURL, spaceEmailIllustrationURL(spaceNotificationPostCreated))require.Equal(t, spaceNewPostLikeIllustrationURL, spaceEmailIllustrationURL(spaceNotificationPostLiked))require.Equal(t, spaceNewPostReplyIllustrationURL, spaceEmailIllustrationURL(spaceNotificationPostReplied))