2021-11-09 13:50:33 +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
|
|
|
|
|
|
|
|
#include "base/object_ptr.h"
|
|
|
|
#include "ui/layers/generic_box.h"
|
|
|
|
|
|
|
|
class PeerData;
|
|
|
|
|
|
|
|
namespace Window {
|
|
|
|
class SessionController;
|
|
|
|
} // namespace Window
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
|
|
|
class SendAsButton;
|
|
|
|
|
|
|
|
void ChooseSendAsBox(
|
|
|
|
not_null<GenericBox*> box,
|
|
|
|
std::vector<not_null<PeerData*>> list,
|
|
|
|
not_null<PeerData*> chosen,
|
|
|
|
Fn<void(not_null<PeerData*>)> done);
|
|
|
|
|
2021-11-09 17:04:42 +00:00
|
|
|
void SetupSendAsButton(
|
|
|
|
not_null<SendAsButton*> button,
|
|
|
|
rpl::producer<PeerData*> active,
|
|
|
|
not_null<Window::SessionController*> window);
|
|
|
|
|
2021-11-09 13:50:33 +00:00
|
|
|
void SetupSendAsButton(
|
|
|
|
not_null<SendAsButton*> button,
|
|
|
|
not_null<Window::SessionController*> window);
|
|
|
|
|
|
|
|
} // namespace Ui
|