ZaStoGram_desktop/Telegram/SourceFiles/boxes/peers/add_to_community_box.h
John Preston d2e5ebbf48 Create new chats from Community chooser
Task: 2026/07/24/create-chat-from-community-chooser
2026-07-24 20:00:59 +04:00

25 lines
639 B
C++

/*
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
class ChannelData;
class PeerData;
namespace Window {
class SessionNavigation;
} // namespace Window
void ShowAddToCommunityBox(
not_null<Window::SessionNavigation*> navigation,
not_null<PeerData*> peer);
void ShowAddPeerToCommunity(
not_null<Window::SessionNavigation*> navigation,
not_null<ChannelData*> community,
not_null<PeerData*> peer,
Fn<void()> completed = nullptr);