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

Update API scheme on layer 143 + transcribe.

This commit is contained in:
John Preston
2022-05-24 19:38:46 +04:00
parent 3fac522bbc
commit 0b2a5a22ba
14 changed files with 421 additions and 29 deletions

View File

@@ -28,6 +28,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "api/api_confirm_phone.h"
#include "api/api_unread_things.h"
#include "api/api_ringtones.h"
#include "api/api_transcribes.h"
#include "data/notify/data_notify_settings.h"
#include "data/stickers/data_stickers.h"
#include "data/data_drafts.h"
@@ -145,7 +146,8 @@ ApiWrap::ApiWrap(not_null<Main::Session*> session)
, _polls(std::make_unique<Api::Polls>(this))
, _chatParticipants(std::make_unique<Api::ChatParticipants>(this))
, _unreadThings(std::make_unique<Api::UnreadThings>(this))
, _ringtones(std::make_unique<Api::Ringtones>(this)) {
, _ringtones(std::make_unique<Api::Ringtones>(this))
, _transcribes(std::make_unique<Api::Transcribes>(this)) {
crl::on_main(session, [=] {
// You can't use _session->lifetime() in the constructor,
// only queued, because it is not constructed yet.
@@ -4105,3 +4107,7 @@ Api::UnreadThings &ApiWrap::unreadThings() {
Api::Ringtones &ApiWrap::ringtones() {
return *_ringtones;
}
Api::Transcribes &ApiWrap::transcribes() {
return *_transcribes;
}