fix up the crash of mention.
fix up the '@' issue.

This commit is contained in:
ryanzhao
2019-11-18 17:10:28 +11:00
parent a307a8e207
commit 2677599953
2 changed files with 6 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ public class AvatarImageView extends AppCompatImageView {
public void update(String hexEncodedPublicKey) {
Address address = Address.fromSerialized(hexEncodedPublicKey);
if (!address.equals(recipient.getAddress())) {
if (recipient == null || !address.equals(recipient.getAddress())) {
this.recipient = Recipient.from(getContext(), address, false);
updateImage();
}