mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Allow cancel search-in-chat and keep search query.
This commit is contained in:
parent
167a73ef1b
commit
091b62bed4
1 changed files with 3 additions and 1 deletions
|
@ -1784,7 +1784,9 @@ bool Widget::onCancelSearch() {
|
||||||
void Widget::onCancelSearchInChat() {
|
void Widget::onCancelSearchInChat() {
|
||||||
cancelSearchRequest();
|
cancelSearchRequest();
|
||||||
if (_searchInChat) {
|
if (_searchInChat) {
|
||||||
if (Adaptive::OneColumn() && !controller()->selectingPeer()) {
|
if (Adaptive::OneColumn()
|
||||||
|
&& !controller()->selectingPeer()
|
||||||
|
&& _filter->getLastText().trimmed().isEmpty()) {
|
||||||
if (const auto peer = _searchInChat.peer()) {
|
if (const auto peer = _searchInChat.peer()) {
|
||||||
Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
|
Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
|
||||||
//} else if (const auto feed = _searchInChat.feed()) { // #feed
|
//} else if (const auto feed = _searchInChat.feed()) { // #feed
|
||||||
|
|
Loading…
Add table
Reference in a new issue