report_messages_box.h 766 B

123456789101112131415161718192021222324252627282930313233
  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. template <typename Object>
  9. class object_ptr;
  10. namespace Ui {
  11. class BoxContent;
  12. class Show;
  13. } // namespace Ui
  14. namespace style {
  15. struct ReportBox;
  16. } // namespace style
  17. class PeerData;
  18. [[nodiscard]] object_ptr<Ui::BoxContent> ReportProfilePhotoBox(
  19. not_null<PeerData*> peer,
  20. not_null<PhotoData*> photo);
  21. void ShowReportMessageBox(
  22. std::shared_ptr<Ui::Show> show,
  23. not_null<PeerData*> peer,
  24. const std::vector<MsgId> &ids,
  25. const std::vector<StoryId> &stories,
  26. const style::ReportBox *stOverride = nullptr);