Cache Telegram avatars locally and refresh avatar file ids

This commit is contained in:
Ruslan Bakiev
2026-02-26 10:59:44 +07:00
parent ba3e5f7cac
commit 6bae0300c8
2 changed files with 27 additions and 1 deletions

View File

@@ -248,7 +248,7 @@ async function maybeHydrateContact(contactId: string, profile: ContactProfile) {
}
const currentAvatar = asString(current.avatarUrl);
if (profile.avatarUrl && !currentAvatar) {
if (profile.avatarUrl && profile.avatarUrl !== currentAvatar) {
updates.avatarUrl = profile.avatarUrl;
}