From 3ef69f045523c1e2f81d1eb7edf7de84cca82aeb Mon Sep 17 00:00:00 2001 From: Sasha Weiss Date: Fri, 5 May 2023 11:50:23 -0700 Subject: [PATCH] Use more precise string for approved request to join --- Signal/translations/en.lproj/Localizable.strings | 3 +++ .../Interactions/TSInfoMessage+GroupUpdateCopy.swift | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index 80b905ab89..77a7aec0e4 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -2881,6 +2881,9 @@ /* Message indicating that the local user was removed from the group by an unknown user. */ "GROUP_LOCAL_USER_REMOVED_BY_UNKNOWN_USER" = "You were removed from the group."; +/* Message indicating that the local user's request to join the group was approved. */ +"GROUP_LOCAL_USER_REQUEST_APPROVED" = "Your request to join the group was approved."; + /* Message indicating that the local user's request to join the group was approved by another user. Embeds {{ %@ the name of the user who approved the request }}. */ "GROUP_LOCAL_USER_REQUEST_APPROVED_BY_REMOTE_USER_FORMAT" = "%@ approved your request to join the group."; diff --git a/SignalServiceKit/src/Messages/Interactions/TSInfoMessage+GroupUpdateCopy.swift b/SignalServiceKit/src/Messages/Interactions/TSInfoMessage+GroupUpdateCopy.swift index 3759a30455..217cd865dd 100644 --- a/SignalServiceKit/src/Messages/Interactions/TSInfoMessage+GroupUpdateCopy.swift +++ b/SignalServiceKit/src/Messages/Interactions/TSInfoMessage+GroupUpdateCopy.swift @@ -1653,8 +1653,9 @@ extension GroupUpdateCopy { case .unknown: addItem(.userMembershipState_added, address: address, - copy: OWSLocalizedString("GROUP_LOCAL_USER_WAS_ADDED_TO_THE_GROUP", - comment: "Message indicating that the local user was added to the group.")) + copy: OWSLocalizedString( + "GROUP_LOCAL_USER_REQUEST_APPROVED", + comment: "Message indicating that the local user's request to join the group was approved.")) } } else { let requesterName = contactsManager.displayName(for: address, transaction: tx)