2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixed total count of found messages in channels via api search.

This commit is contained in:
23rd
2022-04-15 13:06:59 +03:00
parent 07a022bfb6
commit 21c647147a

View File

@@ -159,7 +159,7 @@ void MessagesSearch::searchReceived(
owner.processChats(data.vchats());
}
auto items = HistoryItemsFromTL(&owner, data.vmessages().v);
const auto total = int(data.vmessages().v.size());
const auto total = int(data.vcount().v);
return FoundMessages{ total, std::move(items), nextToken };
}, [](const MTPDmessages_messagesNotModified &data) {
return FoundMessages{};