2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00
Files
kotatogram-desktop/Telegram/SourceFiles/media/stories/media_stories_reply.h
2023-07-20 07:20:07 +04:00

40 lines
830 B
C++

/*
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 HistoryView {
class ComposeControls;
} // namespace HistoryView
namespace Media::Stories {
class Delegate;
struct ReplyAreaData {
not_null<UserData*> user;
friend inline auto operator<=>(ReplyAreaData, ReplyAreaData) = default;
};
class ReplyArea final {
public:
explicit ReplyArea(not_null<Delegate*> delegate);
~ReplyArea();
private:
void showPremiumToast(not_null<DocumentData*> emoji);
const not_null<Delegate*> _delegate;
const std::unique_ptr<HistoryView::ComposeControls> _controls;
rpl::lifetime _lifetime;
};
} // namespace Media::Stories