2021-12-13 11:26:19 +00: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
|
|
|
|
|
|
|
|
class PeerData;
|
|
|
|
|
|
|
|
namespace Data {
|
|
|
|
struct Reaction;
|
2022-08-22 09:15:34 +00:00
|
|
|
struct AllowedReactions;
|
2021-12-13 11:26:19 +00:00
|
|
|
} // namespace Data
|
|
|
|
|
2022-04-17 09:33:29 +00:00
|
|
|
namespace Ui {
|
|
|
|
class GenericBox;
|
|
|
|
} // namespace Ui
|
|
|
|
|
2021-12-13 11:26:19 +00:00
|
|
|
void EditAllowedReactionsBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
|
|
|
bool isGroup,
|
|
|
|
const std::vector<Data::Reaction> &list,
|
2022-08-22 09:15:34 +00:00
|
|
|
const Data::AllowedReactions &allowed,
|
|
|
|
Fn<void(const std::vector<QString> &, bool all)> callback);
|
2021-12-13 11:26:19 +00:00
|
|
|
|
|
|
|
void SaveAllowedReactions(
|
|
|
|
not_null<PeerData*> peer,
|
2022-08-22 09:15:34 +00:00
|
|
|
const std::vector<QString> &allowed,
|
|
|
|
bool all);
|