mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)
|
MessagesSearchMerged::MessagesSearchMerged(not_null<History*> history)
|
||||||
: _apiSearch(history)
|
: _apiSearch(history) {
|
||||||
, _migratedSearch(history->migrateFrom()
|
if (const auto migrated = history->migrateFrom()) {
|
||||||
? std::make_optional<MessagesSearch>(history->migrateFrom())
|
_migratedSearch.emplace(migrated);
|
||||||
: std::nullopt) {
|
}
|
||||||
|
|
||||||
const auto checkWaitingForTotal = [=] {
|
const auto checkWaitingForTotal = [=] {
|
||||||
if (_waitingForTotal) {
|
if (_waitingForTotal) {
|
||||||
if (_concatedFound.total >= 0 && _migratedFirstFound.total >= 0) {
|
if (_concatedFound.total >= 0 && _migratedFirstFound.total >= 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue