From a5483a511388a881d1c59fff43a3570dcf2b9440 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 8 Feb 2022 19:17:22 +0300 Subject: [PATCH] Fix build on Linux. --- Telegram/SourceFiles/history/history_widget.cpp | 8 -------- cmake | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index ac0552572..433b0a922 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -3399,9 +3399,6 @@ void HistoryWidget::checkSupportPreload(bool force) { const auto maxId = 0; const auto minId = 0; const auto historyHash = uint64(0); - const auto tmp = history->peer->name.toStdString(); - const auto tmp2 = _history->peer->name.toStdString(); - LOG(("PRELOADING FROM: %1 FOR: %2").arg(_history->peer->name).arg(history->peer->name)); const auto type = Data::Histories::RequestType::History; auto &histories = history->owner().histories(); _supportPreloadRequest = histories.sendRequest(history, type, [=](Fn finish) { @@ -3417,7 +3414,6 @@ void HistoryWidget::checkSupportPreload(bool force) { )).done([=](const MTPmessages_Messages &result) { if (const auto around = history->loadAroundId()) { if (around != offsetId) { - LOG(("RE-PRELOADING FOR: %1").arg(history->peer->name)); _supportPreloadRequest = 0; _supportPreloadHistory = nullptr; crl::on_main(this, [=] { checkSupportPreload(); }); @@ -3426,7 +3422,6 @@ void HistoryWidget::checkSupportPreload(bool force) { history->clear(History::ClearType::Unload); history->getReadyFor(ShowAtUnreadMsgId); } else if (offsetId) { - LOG(("RE-PRELOADING FOR: %1").arg(history->peer->name)); _supportPreloadRequest = 0; _supportPreloadHistory = nullptr; crl::on_main(this, [=] { checkSupportPreload(); }); @@ -3435,9 +3430,6 @@ void HistoryWidget::checkSupportPreload(bool force) { history->clear(History::ClearType::Unload); history->getReadyFor(ShowAtTheEndMsgId); } - LOG(("PRELOADED FOR: %1").arg(history->peer->name)); - auto count = 0; - const QVector emptyList, *histList = &emptyList; result.match([](const MTPDmessages_messagesNotModified&) { }, [&](const auto &data) { history->owner().processUsers(data.vusers()); diff --git a/cmake b/cmake index 54e750cca..3604a7f02 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 54e750cca08f527368cab599bf6022d485e040b3 +Subproject commit 3604a7f02396970bb83b7d00dabfafa00659fbe7