2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Show special blank chat for paid messages.

This commit is contained in:
John Preston
2025-03-06 13:49:49 +04:00
parent d43a6da62b
commit 0ac88c0cb5
5 changed files with 89 additions and 27 deletions

View File

@@ -659,6 +659,10 @@ Type CreditsId() {
return Credits::Id();
}
BuyStarsHandler::BuyStarsHandler() = default;
BuyStarsHandler::~BuyStarsHandler() = default;
Fn<void()> BuyStarsHandler::handler(
std::shared_ptr<::Main::SessionShow> show,
Fn<void()> paid) {

View File

@@ -23,6 +23,9 @@ namespace Settings {
class BuyStarsHandler final : public base::has_weak_ptr {
public:
BuyStarsHandler();
~BuyStarsHandler();
[[nodiscard]] Fn<void()> handler(
std::shared_ptr<::Main::SessionShow> show,
Fn<void()> paid = nullptr);