Fixed disappearing of chats filters strip in forward box after search.

This commit is contained in:
23rd 2024-11-13 11:03:10 +03:00
parent cf270bd9ce
commit f0f2a71a87

View file

@ -219,7 +219,9 @@ void PeerListBox::searchQueryChanged(const QString &query) {
scrollToY(0);
const auto isEmpty = content()->searchQueryChanged(query);
if (_specialTabsMode.enabled) {
const auto was = _specialTabsMode.searchIsActive;
_specialTabsMode.searchIsActive = !isEmpty;
if (was != _specialTabsMode.searchIsActive) {
if (_specialTabsMode.searchIsActive) {
_specialTabsMode.topSkip = _addedTopScrollSkip;
setAddedTopScrollSkip(0);
@ -228,6 +230,7 @@ void PeerListBox::searchQueryChanged(const QString &query) {
}
}
}
}
void PeerListBox::resizeEvent(QResizeEvent *e) {
BoxContent::resizeEvent(e);