mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed total count of found messages in channels via api search.
This commit is contained in:
parent
07a022bfb6
commit
21c647147a
1 changed files with 1 additions and 1 deletions
|
@ -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{};
|
||||
|
|
Loading…
Add table
Reference in a new issue