tdesktop/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.h

32 lines
728 B
C
Raw Normal View History

/*
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;
} // namespace Data
namespace Ui {
class GenericBox;
} // namespace Ui
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);
void SaveAllowedReactions(
not_null<PeerData*> peer,
2022-08-22 09:15:34 +00:00
const std::vector<QString> &allowed,
bool all);