2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Implement switch_webview and "web_app_switch_inline_query".

This commit is contained in:
John Preston
2023-03-01 17:27:13 +04:00
committed by 23rd
parent 34c1bd950e
commit 4fe568cb82
17 changed files with 415 additions and 152 deletions

View File

@@ -171,6 +171,7 @@ struct SectionShow {
anim::activation activation = anim::activation::normal;
bool thirdColumn = false;
bool childColumn = false;
bool reapplyLocalDraft = false;
Origin origin;
};
@@ -373,6 +374,13 @@ public:
rpl::producer<Dialogs::Key> activeChatValue() const;
bool jumpToChatListEntry(Dialogs::RowDescriptor row);
void setCurrentDialogsEntryState(Dialogs::EntryState state);
[[nodiscard]] Dialogs::EntryState currentDialogsEntryState() const;
void switchInlineQuery(
Dialogs::EntryState to,
not_null<UserData*> bot,
const QString &query);
[[nodiscard]] Dialogs::RowDescriptor resolveChatNext(
Dialogs::RowDescriptor from = {}) const;
[[nodiscard]] Dialogs::RowDescriptor resolveChatPrevious(
@@ -635,6 +643,8 @@ private:
int _chatEntryHistoryPosition = -1;
bool _filtersActivated = false;
Dialogs::EntryState _currentDialogsEntryState;
base::Timer _invitePeekTimer;
rpl::variable<FilterId> _activeChatsFilter;