mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45: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),
|
HistoryFeed::Memento(feed, chosen.message),
|
||||||
Window::SectionShow::Way::ClearStack);
|
Window::SectionShow::Way::ClearStack);
|
||||||
}
|
}
|
||||||
if (openSearchResult) {
|
if (openSearchResult && !Auth().supportMode()) {
|
||||||
emit searchResultChosen();
|
emit clearSearchQuery();
|
||||||
}
|
}
|
||||||
updateSelectedRow();
|
updateSelectedRow();
|
||||||
_selected = nullptr;
|
_selected = nullptr;
|
||||||
|
@@ -114,7 +114,7 @@ signals:
|
|||||||
void mustScrollTo(int scrollToTop, int scrollToBottom);
|
void mustScrollTo(int scrollToTop, int scrollToBottom);
|
||||||
void dialogMoved(int movedFrom, int movedTo);
|
void dialogMoved(int movedFrom, int movedTo);
|
||||||
void searchMessages();
|
void searchMessages();
|
||||||
void searchResultChosen();
|
void clearSearchQuery();
|
||||||
void cancelSearchInChat();
|
void cancelSearchInChat();
|
||||||
void completeHashtag(QString tag);
|
void completeHashtag(QString tag);
|
||||||
void refreshHashtags();
|
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(mustScrollTo(int,int)), _scroll, SLOT(scrollToY(int,int)));
|
||||||
connect(_inner, SIGNAL(dialogMoved(int,int)), this, SLOT(onDialogMoved(int,int)));
|
connect(_inner, SIGNAL(dialogMoved(int,int)), this, SLOT(onDialogMoved(int,int)));
|
||||||
connect(_inner, SIGNAL(searchMessages()), this, SLOT(onNeedSearchMessages()));
|
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(completeHashtag(QString)), this, SLOT(onCompleteHashtag(QString)));
|
||||||
connect(_inner, SIGNAL(refreshHashtags()), this, SLOT(onFilterCursorMoved()));
|
connect(_inner, SIGNAL(refreshHashtags()), this, SLOT(onFilterCursorMoved()));
|
||||||
connect(_inner, SIGNAL(cancelSearchInChat()), this, SLOT(onCancelSearchInChat()));
|
connect(_inner, SIGNAL(cancelSearchInChat()), this, SLOT(onCancelSearchInChat()));
|
||||||
|
Reference in New Issue
Block a user