2024-04-25 14:10:30 +03: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
|
|
|
|
|
2024-04-28 16:38:37 +03:00
|
|
|
class PeerData;
|
2024-04-25 14:10:30 +03:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class GenericBox;
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
void CreateModerateMessagesBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
2024-04-26 02:47:39 +03:00
|
|
|
const HistoryItemsList &items,
|
|
|
|
Fn<void()> confirmed);
|
2024-04-25 14:10:30 +03:00
|
|
|
|
|
|
|
[[nodiscard]] bool CanCreateModerateMessagesBox(const HistoryItemsList &);
|
2024-04-28 16:38:37 +03:00
|
|
|
|
|
|
|
void DeleteChatBox(not_null<Ui::GenericBox*> box, not_null<PeerData*> peer);
|