fix(chats): fall back to cached title/iconUrl for dialogs

This commit is contained in:
klockky
2026-06-07 14:25:30 +03:00
parent 260e94632f
commit 8a39862f84
@@ -1429,8 +1429,9 @@ class _ChatListScreenState extends State<ChatListScreen>
break;
}
}
final name = ContactCache.get(secondId);
final avatar = ContactCache.getAvatar(secondId);
final name = ContactCache.get(secondId) ?? chat.title;
final avatar =
ContactCache.getAvatar(secondId) ?? chat.iconUrl;
// ContactCache.isOfficial covers contacts loaded via opcode 32;
// chat.isOfficial covers contacts from the login payload.
final isVerified =