mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Subscription status display.
This commit is contained in:
@@ -29,6 +29,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "api/api_unread_things.h"
|
||||
#include "api/api_ringtones.h"
|
||||
#include "api/api_transcribes.h"
|
||||
#include "api/api_premium.h"
|
||||
#include "data/notify/data_notify_settings.h"
|
||||
#include "data/stickers/data_stickers.h"
|
||||
#include "data/data_drafts.h"
|
||||
@@ -147,7 +148,8 @@ ApiWrap::ApiWrap(not_null<Main::Session*> session)
|
||||
, _chatParticipants(std::make_unique<Api::ChatParticipants>(this))
|
||||
, _unreadThings(std::make_unique<Api::UnreadThings>(this))
|
||||
, _ringtones(std::make_unique<Api::Ringtones>(this))
|
||||
, _transcribes(std::make_unique<Api::Transcribes>(this)) {
|
||||
, _transcribes(std::make_unique<Api::Transcribes>(this))
|
||||
, _premium(std::make_unique<Api::Premium>(this)) {
|
||||
crl::on_main(session, [=] {
|
||||
// You can't use _session->lifetime() in the constructor,
|
||||
// only queued, because it is not constructed yet.
|
||||
@@ -4111,3 +4113,7 @@ Api::Ringtones &ApiWrap::ringtones() {
|
||||
Api::Transcribes &ApiWrap::transcribes() {
|
||||
return *_transcribes;
|
||||
}
|
||||
|
||||
Api::Premium &ApiWrap::premium() {
|
||||
return *_premium;
|
||||
}
|
||||
|
Reference in New Issue
Block a user