Added initial dummy files for component of passkeys.

This commit is contained in:
23rd
2025-11-29 05:04:47 +03:00
committed by John Preston
parent 2d41d5903b
commit 7bb30bc4a8
5 changed files with 55 additions and 0 deletions
+2
View File
@@ -523,6 +523,8 @@ PRIVATE
data/components/gift_auctions.h
data/components/location_pickers.cpp
data/components/location_pickers.h
data/components/passkeys.cpp
data/components/passkeys.h
data/components/promo_suggestions.cpp
data/components/promo_suggestions.h
data/components/recent_peers.cpp
@@ -0,0 +1,20 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "data/components/passkeys.h"
#include "main/main_session.h"
namespace Data {
Passkeys::Passkeys(not_null<Main::Session*> session)
: _session(session) {
}
Passkeys::~Passkeys() = default;
} // namespace Data
@@ -0,0 +1,26 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Main {
class Session;
} // namespace Main
namespace Data {
class Passkeys final {
public:
explicit Passkeys(not_null<Main::Session*> session);
~Passkeys();
private:
const not_null<Main::Session*> _session;
};
} // namespace Data
@@ -33,6 +33,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/components/factchecks.h"
#include "data/components/gift_auctions.h"
#include "data/components/location_pickers.h"
#include "data/components/passkeys.h"
#include "data/components/promo_suggestions.h"
#include "data/components/recent_peers.h"
#include "data/components/recent_shared_media_gifts.h"
@@ -155,6 +156,7 @@ Session::Session(
}
}
}))
, _passkeys(std::make_unique<Data::Passkeys>(this))
, _cachedReactionIconFactory(std::make_unique<ReactionIconFactory>())
, _supportHelper(Support::Helper::Create(this))
, _fastButtonsBots(std::make_unique<Support::FastButtonsBots>(this))
+5
View File
@@ -42,6 +42,7 @@ class Factchecks;
class LocationPickers;
class Credits;
class PromoSuggestions;
class Passkeys;
} // namespace Data
namespace HistoryView::Reactions {
@@ -201,6 +202,9 @@ public:
[[nodiscard]] Data::PromoSuggestions &promoSuggestions() const {
return *_promoSuggestions;
}
[[nodiscard]] Data::Passkeys &passkeys() const {
return *_passkeys;
}
[[nodiscard]] auto cachedReactionIconFactory() const
-> HistoryView::Reactions::CachedIconFactory & {
return *_cachedReactionIconFactory;
@@ -305,6 +309,7 @@ private:
const std::unique_ptr<Data::LocationPickers> _locationPickers;
const std::unique_ptr<Data::Credits> _credits;
const std::unique_ptr<Data::PromoSuggestions> _promoSuggestions;
const std::unique_ptr<Data::Passkeys> _passkeys;
using ReactionIconFactory = HistoryView::Reactions::CachedIconFactory;
const std::unique_ptr<ReactionIconFactory> _cachedReactionIconFactory;