2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Preload complex last message on demand.

This commit is contained in:
John Preston
2023-02-09 09:56:47 +04:00
parent 369862a3a7
commit f2ed77649e
11 changed files with 101 additions and 55 deletions

View File

@@ -743,6 +743,7 @@ void RowPainter::Paint(
const auto thread = row->thread();
const auto peer = history ? history->peer.get() : nullptr;
const auto badgesState = entry->chatListBadgesState();
entry->chatListPreloadData(); // Allow chat list message resolve.
const auto item = entry->chatListMessage();
const auto cloudDraft = [&]() -> const Data::Draft*{
if (!thread) {