mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Fix build on Windows.
This commit is contained in:
parent
efa1b2dcbc
commit
644881bd3e
1 changed files with 4 additions and 5 deletions
|
@ -18,11 +18,10 @@ bool MessagesSearchMerged::RequestCompare::operator()(
|
|||
}
|
||||
|
||||
MessagesSearchMerged::MessagesSearchMerged(not_null<History*> history)
|
||||
: _apiSearch(history)
|
||||
, _migratedSearch(history->migrateFrom()
|
||||
? std::make_optional<MessagesSearch>(history->migrateFrom())
|
||||
: std::nullopt) {
|
||||
|
||||
: _apiSearch(history) {
|
||||
if (const auto migrated = history->migrateFrom()) {
|
||||
_migratedSearch.emplace(migrated);
|
||||
}
|
||||
const auto checkWaitingForTotal = [=] {
|
||||
if (_waitingForTotal) {
|
||||
if (_concatedFound.total >= 0 && _migratedFirstFound.total >= 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue