/* 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 "ui/layers/generic_box.h" class PeerData; namespace Api { struct InviteLink; } // namespace Api namespace Ui { class VerticalLayout; } // namespace Ui [[nodiscard]] bool IsExpiredLink(const Api::InviteLink &data, TimeId now); void AddSinglePeerRow( not_null container, not_null peer, rpl::producer status); void AddPermanentLinkBlock( not_null container, not_null peer, not_null admin, rpl::producer fromList); void CopyInviteLink(const QString &link); void ShareInviteLinkBox(not_null peer, const QString &link); void InviteLinkQrBox(const QString &link); void RevokeLink( not_null peer, not_null admin, const QString &link); void EditLink( not_null peer, const Api::InviteLink &data); void DeleteLink( not_null peer, not_null admin, const QString &link); void ShowInviteLinkBox( not_null peer, const Api::InviteLink &link); [[nodiscard]] QString PrepareRequestedRowStatus(TimeId date);