mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Fix jump to archive from search in chat.
This commit is contained in:
@@ -131,7 +131,6 @@ public:
|
||||
bool floatPlayerHandleWheelEvent(QEvent *e) override;
|
||||
QRect floatPlayerAvailableRect() override;
|
||||
|
||||
bool cancelSearch(bool forceFullCancel = false);
|
||||
bool cancelSearchByMouseBack();
|
||||
|
||||
QVariant inputMethodQuery(Qt::InputMethodQuery query) const override;
|
||||
@@ -261,6 +260,12 @@ private:
|
||||
[[nodiscard]] bool redirectKeyToSearch(QKeyEvent *e) const;
|
||||
[[nodiscard]] bool redirectImeToSearch() const;
|
||||
|
||||
struct CancelSearchOptions {
|
||||
bool forceFullCancel = false;
|
||||
bool jumpBackToSearchedChat = false;
|
||||
};
|
||||
bool cancelSearch(CancelSearchOptions options = {});
|
||||
|
||||
MTP::Sender _api;
|
||||
|
||||
bool _dragInScroll = false;
|
||||
|
Reference in New Issue
Block a user