If we are cached only then pass that through

(cherry picked from commit be73a001719ac6e6201457d543c16251fc96cadb)
This commit is contained in:
Stephen Paul Weber 2024-10-08 22:38:18 -05:00 committed by Arne
parent c0ed3a0481
commit 92cbf35a31

View file

@ -119,7 +119,7 @@ public class AvatarService implements OnAdvancedStreamFeaturesLoaded {
avatar = mXmppConnectionService.getFileBackend().getAvatar(contact.getAvatarFilename(), size);
}
if (avatar == null) {
avatar = get(contact.getDisplayName(), contact.getJid().asBareJid().toString(), size, false);
avatar = get(contact.getDisplayName(), contact.getJid().asBareJid().toString(), size, cachedOnly);
}
if (avatar != null) this.mXmppConnectionService.getDrawableCache().put(KEY, avatar);
return avatar;