2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 10:47:11 +00:00
tdesktop/Telegram/SourceFiles/payments/payments_reaction_process.h

45 lines
990 B
C
Raw Normal View History

2024-08-06 12:48:06 +02:00
/*
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
enum class HistoryReactionSource : char;
class HistoryItem;
namespace HistoryView {
class Element;
} // namespace HistoryView
namespace Ui {
class Show;
} // namespace Ui
2024-08-12 17:51:31 +02:00
namespace Window {
class SessionController;
} // namespace Window
2024-08-06 12:48:06 +02:00
namespace Payments {
2024-08-12 17:51:31 +02:00
[[nodiscard]] bool LookupMyPaidAnonymous(not_null<HistoryItem*> item);
2024-08-06 12:48:06 +02:00
void TryAddingPaidReaction(
not_null<HistoryItem*> item,
HistoryView::Element *view,
int count,
std::optional<PeerId> shownPeer,
2024-08-06 12:48:06 +02:00
std::shared_ptr<Ui::Show> show,
Fn<void(bool)> finished = nullptr);
void ShowPaidReactionDetails(
2024-08-12 17:51:31 +02:00
not_null<Window::SessionController*> controller,
2024-08-06 12:48:06 +02:00
not_null<HistoryItem*> item,
HistoryView::Element *view,
HistoryReactionSource source);
} // namespace Payments