2022-03-27 10:08:47 +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
|
|
|
|
|
2022-10-13 17:34:04 +00:00
|
|
|
namespace Data {
|
|
|
|
class Thread;
|
|
|
|
} // namespace Data
|
2022-03-27 10:08:47 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PopupMenu;
|
|
|
|
class RpWidget;
|
2022-03-28 11:22:11 +00:00
|
|
|
class Show;
|
2022-03-27 10:08:47 +00:00
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace MuteMenu {
|
|
|
|
|
|
|
|
void FillMuteMenu(
|
|
|
|
not_null<Ui::PopupMenu*> menu,
|
2022-10-13 17:34:04 +00:00
|
|
|
not_null<Data::Thread*> thread,
|
|
|
|
std::shared_ptr<Ui::Show> show);
|
2022-03-27 10:08:47 +00:00
|
|
|
|
|
|
|
void SetupMuteMenu(
|
|
|
|
not_null<Ui::RpWidget*> parent,
|
|
|
|
rpl::producer<> triggers,
|
2022-10-13 17:34:04 +00:00
|
|
|
Fn<Data::Thread*()> makeThread,
|
|
|
|
std::shared_ptr<Ui::Show> show);
|
2022-03-27 10:08:47 +00:00
|
|
|
|
|
|
|
} // namespace MuteMenu
|