2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 16:45:12 +00:00

Fix build with GCC.

This commit is contained in:
John Preston
2022-11-02 08:51:03 +04:00
parent 45cacc94c0
commit fdf4129e5e
28 changed files with 28 additions and 64 deletions

View File

@@ -953,7 +953,6 @@ void Widget::jumpToTop(bool belowPinned) {
controller()->activeChatsFilterCurrent())
: session().data().chatsList(_openedFolder);
const auto count = int(list->pinned()->order().size());
const auto now = _scroll->scrollTop();
const auto row = _inner->st()->height;
const auto min = (row * (count * 2 + 1) - _scroll->height()) / 2;
if (_scroll->scrollTop() <= min) {
@@ -1573,8 +1572,6 @@ void Widget::searchReceived(
_lastSearchPeer = nullptr;
_lastSearchId = _lastSearchMigratedId = 0;
}
const auto isGlobalSearch = (type == SearchRequestType::FromStart)
|| (type == SearchRequestType::FromOffset);
const auto isMigratedSearch = (type == SearchRequestType::MigratedFromStart)
|| (type == SearchRequestType::MigratedFromOffset);
const auto process = [&](const MTPVector<MTPMessage> &messages) {