Skip to content

Commit

Permalink
Fix wrong avatar displaying in reactions fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and greyson-signal committed Feb 5, 2020
1 parent ed2b049 commit 53dfd3f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ void bind(@NonNull Reaction reaction) {
this.recipient.setText(getReactionSenderDisplayName(itemView.getContext(), reaction.getSender()));
this.emoji.setText(reaction.getEmoji());

if (reaction.getSender().equals(Recipient.self())) {
if (reaction.getSender().isLocalNumber()) {
this.avatar.setAvatar(GlideApp.with(avatar), null, false);
AvatarUtil.loadIconIntoImageView(reaction.getSender(), avatar);
} else {
this.avatar.setAvatar(GlideApp.with(avatar), reaction.getSender(), false);
Expand Down

0 comments on commit 53dfd3f

Please sign in to comment.