fix(chats): fall back to cached title/iconUrl for dialogs
This commit is contained in:
@@ -1429,8 +1429,9 @@ class _ChatListScreenState extends State<ChatListScreen>
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final name = ContactCache.get(secondId);
|
final name = ContactCache.get(secondId) ?? chat.title;
|
||||||
final avatar = ContactCache.getAvatar(secondId);
|
final avatar =
|
||||||
|
ContactCache.getAvatar(secondId) ?? chat.iconUrl;
|
||||||
// ContactCache.isOfficial covers contacts loaded via opcode 32;
|
// ContactCache.isOfficial covers contacts loaded via opcode 32;
|
||||||
// chat.isOfficial covers contacts from the login payload.
|
// chat.isOfficial covers contacts from the login payload.
|
||||||
final isVerified =
|
final isVerified =
|
||||||
|
|||||||
Reference in New Issue
Block a user