2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Update archive row on chat list name change.

This commit is contained in:
John Preston
2019-04-23 17:28:44 +04:00
parent 9ff02707bf
commit 3dd2a6bb5b
4 changed files with 43 additions and 12 deletions

View File

@@ -2016,7 +2016,7 @@ void DialogsInner::refresh(bool toTop) {
loadPeerPhotos();
}
_controller->dialogsListDisplayForced().set(
_searchInChat || !_filter.isEmpty(),
_openedFolder || _searchInChat || !_filter.isEmpty(),
true);
update();
}
@@ -2058,6 +2058,9 @@ void DialogsInner::searchInChat(Dialogs::Key key, UserData *from) {
_searchInChat = key;
_searchFromUser = from;
if (_searchInChat) {
if (_openedFolder) {
changeOpenedFolder(nullptr);
}
onHashtagFilterUpdate(QStringRef());
_cancelSearchInChat->show();
refreshSearchInChatLabel();
@@ -2070,7 +2073,7 @@ void DialogsInner::searchInChat(Dialogs::Key key, UserData *from) {
_cancelSearchFromUser->hide();
}
_controller->dialogsListDisplayForced().set(
_searchInChat || !_filter.isEmpty(),
_openedFolder || _searchInChat || !_filter.isEmpty(),
true);
}