edit_linked_chat_box.h 934 B

12345678910111213141516171819202122232425262728293031323334
  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. #include "base/object_ptr.h"
  9. namespace Ui {
  10. class BoxContent;
  11. } // namespace Ui
  12. namespace Window {
  13. class SessionNavigation;
  14. } // namespace Window
  15. [[nodiscard]] object_ptr<Ui::BoxContent> EditLinkedChatBox(
  16. not_null<Window::SessionNavigation*> navigation,
  17. not_null<ChannelData*> channel,
  18. not_null<ChannelData*> chat,
  19. bool canEdit,
  20. Fn<void(ChannelData*)> callback);
  21. [[nodiscard]] object_ptr<Ui::BoxContent> EditLinkedChatBox(
  22. not_null<Window::SessionNavigation*> navigation,
  23. not_null<ChannelData*> channel,
  24. std::vector<not_null<PeerData*>> &&chats,
  25. Fn<void(ChannelData*)> callback);
  26. void ShowForumForDiscussionError(
  27. not_null<Window::SessionNavigation*> navigation);