2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Read and autocomplete templates (support).

This commit is contained in:
John Preston
2018-10-02 23:39:54 +03:00
parent 36f72191ad
commit ccaec28d0b
12 changed files with 849 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ enum class InputSubmitSettings;
namespace Support {
enum class SwitchSettings;
class Templates;
} // namespace Support
namespace Data {
@@ -295,6 +296,7 @@ public:
base::Observable<std::pair<not_null<HistoryItem*>, MsgId>> messageIdChanging;
bool supportMode() const;
not_null<Support::Templates*> supportTemplates() const;
~AuthSession();
@@ -321,6 +323,8 @@ private:
// _changelogs depends on _data, subscribes on chats loading event.
const std::unique_ptr<Core::Changelogs> _changelogs;
const std::unique_ptr<Support::Templates> _supportTemplates;
rpl::lifetime _lifetime;
};