Skip to content

Commit

Permalink
Refer to yourself as 'you' in reactions and group membership.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 26, 2020
1 parent 9e5f64c commit fda8f3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public String[] getRecipientStrings() {

for (Recipient recipient : members) {
if (recipient.isLocalNumber()) {
recipientStrings.add(context.getString(R.string.GroupMembersDialog_me));
recipientStrings.add(context.getString(R.string.GroupMembersDialog_you));
} else {
String name = getRecipientName(recipient);
recipientStrings.add(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ public ViewHolder(@NonNull View itemView) {
}

void bind(@NonNull Reaction reaction) {
this.recipient.setText(reaction.getSender().getDisplayName(itemView.getContext()));
this.emoji.setText(reaction.getEmoji());

if (reaction.getSender().isLocalNumber()) {
this.recipient.setText(R.string.ReactionsRecipientAdapter_you);
this.avatar.setAvatar(GlideApp.with(avatar), null, false);
AvatarUtil.loadIconIntoImageView(reaction.getSender(), avatar);
} else {
this.recipient.setText(reaction.getSender().getDisplayName(itemView.getContext()));
this.avatar.setAvatar(GlideApp.with(avatar), reaction.getSender(), false);
}
}
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
<string name="GroupShareProfileView_make_visible">Make visible</string>

<!-- GroupMembersDialog -->
<string name="GroupMembersDialog_me">Me</string>
<string name="GroupMembersDialog_you">You</string>

<!-- CropImageActivity -->
<string name="CropImageActivity_group_avatar">Group avatar</string>
Expand Down Expand Up @@ -680,6 +680,9 @@
<!-- ReactionsConversationView -->
<string name="ReactionsConversationView_plus">+%1$d</string>

<!-- ReactionsRecipientAdapter -->
<string name="ReactionsRecipientAdapter_you">You</string>

<!-- RecipientPreferencesActivity -->
<string name="RecipientPreferenceActivity_block_this_contact_question">Block this contact?</string>
<string name="RecipientPreferenceActivity_you_will_no_longer_receive_messages_and_calls_from_this_contact">You will no longer receive messages and calls from this contact.</string>
Expand Down

0 comments on commit fda8f3e

Please sign in to comment.