2019-05-23 23:38:49 +02: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
|
|
|
|
|
|
|
|
#include "boxes/abstract_box.h"
|
|
|
|
|
2019-07-25 20:55:11 +02:00
|
|
|
namespace Window {
|
|
|
|
class SessionNavigation;
|
|
|
|
} // namespace Window
|
|
|
|
|
2019-05-30 13:54:10 +03:00
|
|
|
object_ptr<BoxContent> EditLinkedChatBox(
|
2019-07-25 20:55:11 +02:00
|
|
|
not_null<Window::SessionNavigation*> navigation,
|
2019-05-30 13:54:10 +03:00
|
|
|
not_null<ChannelData*> channel,
|
|
|
|
not_null<ChannelData*> chat,
|
2019-06-01 11:27:05 +03:00
|
|
|
bool canEdit,
|
2019-05-30 13:54:10 +03:00
|
|
|
Fn<void(ChannelData*)> callback);
|
2019-05-23 23:38:49 +02:00
|
|
|
|
2019-05-30 13:54:10 +03:00
|
|
|
object_ptr<BoxContent> EditLinkedChatBox(
|
2019-07-25 20:55:11 +02:00
|
|
|
not_null<Window::SessionNavigation*> navigation,
|
2019-05-30 13:54:10 +03:00
|
|
|
not_null<ChannelData*> channel,
|
2019-05-30 16:12:10 +03:00
|
|
|
std::vector<not_null<PeerData*>> &&chats,
|
2019-05-30 13:54:10 +03:00
|
|
|
Fn<void(ChannelData*)> callback);
|