/* 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 #include "boxes/abstract_box.h" class EditLinkedChatBox : public BoxContent { public: EditLinkedChatBox( QWidget*, not_null channel, not_null chat, Fn callback); EditLinkedChatBox( QWidget*, not_null channel, const std::vector> &chats, Fn callback); protected: void prepare() override; private: object_ptr setupContent( not_null channel, ChannelData *chat, const std::vector> &chats, Fn callback); not_null _channel; object_ptr _content; };