Merge pull request #1974 from ecency/nt/avatar-update-bug

NT - Avatar Bug Update
This commit is contained in:
Feruz M 2021-06-17 05:15:43 +03:00 committed by GitHub
commit eff6d4900d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,11 @@ const UserAvatarView = ({
const uri = avatarUrl ? avatarUrl : getResizedAvatar(username, 'large');
const _avatar = username
? { uri : `${uri}?stamp=${avatarCacheStamp}` }
? {
uri : `${uri}${username === curUsername && avatarCacheStamp
? ('?stamp=' + avatarCacheStamp) : '' }`,
cache : FastImage.cacheControl.web
}
: DEFAULT_IMAGE;
let _size:number;