mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Leave chats search query in support mode.
This commit is contained in:
@@ -2521,8 +2521,8 @@ bool DialogsInner::chooseRow() {
|
||||
HistoryFeed::Memento(feed, chosen.message),
|
||||
Window::SectionShow::Way::ClearStack);
|
||||
}
|
||||
if (openSearchResult) {
|
||||
emit searchResultChosen();
|
||||
if (openSearchResult && !Auth().supportMode()) {
|
||||
emit clearSearchQuery();
|
||||
}
|
||||
updateSelectedRow();
|
||||
_selected = nullptr;
|
||||
|
@@ -114,7 +114,7 @@ signals:
|
||||
void mustScrollTo(int scrollToTop, int scrollToBottom);
|
||||
void dialogMoved(int movedFrom, int movedTo);
|
||||
void searchMessages();
|
||||
void searchResultChosen();
|
||||
void clearSearchQuery();
|
||||
void cancelSearchInChat();
|
||||
void completeHashtag(QString tag);
|
||||
void refreshHashtags();
|
||||
|
@@ -159,7 +159,7 @@ DialogsWidget::DialogsWidget(QWidget *parent, not_null<Window::Controller*> cont
|
||||
connect(_inner, SIGNAL(mustScrollTo(int,int)), _scroll, SLOT(scrollToY(int,int)));
|
||||
connect(_inner, SIGNAL(dialogMoved(int,int)), this, SLOT(onDialogMoved(int,int)));
|
||||
connect(_inner, SIGNAL(searchMessages()), this, SLOT(onNeedSearchMessages()));
|
||||
connect(_inner, SIGNAL(searchResultChosen()), this, SLOT(onCancel()));
|
||||
connect(_inner, SIGNAL(clearSearchQuery()), this, SLOT(onCancel()));
|
||||
connect(_inner, SIGNAL(completeHashtag(QString)), this, SLOT(onCompleteHashtag(QString)));
|
||||
connect(_inner, SIGNAL(refreshHashtags()), this, SLOT(onFilterCursorMoved()));
|
||||
connect(_inner, SIGNAL(cancelSearchInChat()), this, SLOT(onCancelSearchInChat()));
|
||||
|
Reference in New Issue
Block a user