Use more precise string for approved request to join

This commit is contained in:
Sasha Weiss 2023-05-05 11:50:23 -07:00 committed by GitHub
parent eff9291c89
commit 3ef69f0455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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.";

View File

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