Message Requests: Fix click of blurred profile avatar

This commit is contained in:
Scott Nonnenberg 2024-09-05 04:20:08 +10:00 committed by GitHub
parent cd44a7a033
commit 970a033847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,7 @@ import {
getAvatar, getAvatar,
getRawAvatarPath, getRawAvatarPath,
getLocalAvatarUrl, getLocalAvatarUrl,
getLocalProfileAvatarUrl,
} from '../util/avatarUtils'; } from '../util/avatarUtils';
import { getDraftPreview } from '../util/getDraftPreview'; import { getDraftPreview } from '../util/getDraftPreview';
import { hasDraft } from '../util/hasDraft'; import { hasDraft } from '../util/hasDraft';
@ -5270,7 +5271,7 @@ export class ConversationModel extends window.Backbone
} }
unblurAvatar(): void { unblurAvatar(): void {
const avatarUrl = getRawAvatarPath(this.attributes); const avatarUrl = getLocalProfileAvatarUrl(this.attributes);
if (avatarUrl) { if (avatarUrl) {
this.set('unblurredAvatarUrl', avatarUrl); this.set('unblurredAvatarUrl', avatarUrl);
} else { } else {