mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Implement connected websites section.
This commit is contained in:
@@ -31,6 +31,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "api/api_transcribes.h"
|
||||
#include "api/api_premium.h"
|
||||
#include "api/api_user_names.h"
|
||||
#include "api/api_websites.h"
|
||||
#include "data/notify/data_notify_settings.h"
|
||||
#include "data/stickers/data_stickers.h"
|
||||
#include "data/data_drafts.h"
|
||||
@@ -176,7 +177,8 @@ ApiWrap::ApiWrap(not_null<Main::Session*> session)
|
||||
, _ringtones(std::make_unique<Api::Ringtones>(this))
|
||||
, _transcribes(std::make_unique<Api::Transcribes>(this))
|
||||
, _premium(std::make_unique<Api::Premium>(this))
|
||||
, _usernames(std::make_unique<Api::Usernames>(this)) {
|
||||
, _usernames(std::make_unique<Api::Usernames>(this))
|
||||
, _websites(std::make_unique<Api::Websites>(this)) {
|
||||
crl::on_main(session, [=] {
|
||||
// You can't use _session->lifetime() in the constructor,
|
||||
// only queued, because it is not constructed yet.
|
||||
@@ -4290,3 +4292,7 @@ Api::Premium &ApiWrap::premium() {
|
||||
Api::Usernames &ApiWrap::usernames() {
|
||||
return *_usernames;
|
||||
}
|
||||
|
||||
Api::Websites &ApiWrap::websites() {
|
||||
return *_websites;
|
||||
}
|
||||
|
Reference in New Issue
Block a user