2019-05-23 21:38:49 +00: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
|
|
|
|
|
2019-09-18 11:19:05 +00:00
|
|
|
#include "base/object_ptr.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class BoxContent;
|
|
|
|
} // namespace Ui
|
2019-05-23 21:38:49 +00:00
|
|
|
|
2019-07-25 18:55:11 +00:00
|
|
|
namespace Window {
|
|
|
|
class SessionNavigation;
|
|
|
|
} // namespace Window
|
|
|
|
|
2023-01-07 05:16:35 +00:00
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> EditLinkedChatBox(
|
2019-07-25 18:55:11 +00:00
|
|
|
not_null<Window::SessionNavigation*> navigation,
|
2019-05-30 10:54:10 +00:00
|
|
|
not_null<ChannelData*> channel,
|
|
|
|
not_null<ChannelData*> chat,
|
2019-06-01 08:27:05 +00:00
|
|
|
bool canEdit,
|
2019-05-30 10:54:10 +00:00
|
|
|
Fn<void(ChannelData*)> callback);
|
2019-05-23 21:38:49 +00:00
|
|
|
|
2023-01-07 05:16:35 +00:00
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> EditLinkedChatBox(
|
2019-07-25 18:55:11 +00:00
|
|
|
not_null<Window::SessionNavigation*> navigation,
|
2019-05-30 10:54:10 +00:00
|
|
|
not_null<ChannelData*> channel,
|
2019-05-30 13:12:10 +00:00
|
|
|
std::vector<not_null<PeerData*>> &&chats,
|
2019-05-30 10:54:10 +00:00
|
|
|
Fn<void(ChannelData*)> callback);
|
2022-10-25 14:07:05 +00:00
|
|
|
|
|
|
|
void ShowForumForDiscussionError(
|
|
|
|
not_null<Window::SessionNavigation*> navigation);
|