mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Rename Recipient.isLocalNumber() to Recipient.isSelf()
This commit is contained in:
committed by
Alan Evans
parent
5eaac6cb17
commit
ead64d92a5
@@ -60,7 +60,7 @@ final class ReactionRecipientsAdapter extends RecyclerView.Adapter<ReactionRecip
|
||||
void bind(@NonNull ReactionDetails reaction) {
|
||||
this.emoji.setText(reaction.getDisplayEmoji());
|
||||
|
||||
if (reaction.getSender().isLocalNumber()) {
|
||||
if (reaction.getSender().isSelf()) {
|
||||
this.recipient.setText(R.string.ReactionsRecipientAdapter_you);
|
||||
this.avatar.setAvatar(GlideApp.with(avatar), null, false);
|
||||
AvatarUtil.loadIconIntoImageView(reaction.getSender(), avatar);
|
||||
|
||||
@@ -55,7 +55,7 @@ public class ReactionsViewModel extends ViewModel {
|
||||
|
||||
private @NonNull String getCountDisplayEmoji(@NonNull List<ReactionDetails> reactions) {
|
||||
for (ReactionDetails reaction : reactions) {
|
||||
if (reaction.getSender().isLocalNumber()) {
|
||||
if (reaction.getSender().isSelf()) {
|
||||
return reaction.getDisplayEmoji();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user