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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user