2
0
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:
John Preston
2024-06-13 16:33:58 +04:00
parent 392df8b56f
commit c585112e37
2 changed files with 24 additions and 11 deletions

View File

@@ -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;