moderate_messages_box.h 597 B

1234567891011121314151617181920212223
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. class PeerData;
  9. namespace Ui {
  10. class GenericBox;
  11. } // namespace Ui
  12. void CreateModerateMessagesBox(
  13. not_null<Ui::GenericBox*> box,
  14. const HistoryItemsList &items,
  15. Fn<void()> confirmed);
  16. [[nodiscard]] bool CanCreateModerateMessagesBox(const HistoryItemsList &);
  17. void DeleteChatBox(not_null<Ui::GenericBox*> box, not_null<PeerData*> peer);