tdesktop/Telegram/SourceFiles/menu/menu_mute.h

35 lines
633 B
C
Raw Normal View History

/*
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 PeerData;
namespace Ui {
class PopupMenu;
class RpWidget;
2022-03-28 11:22:11 +00:00
class Show;
} // namespace Ui
namespace MuteMenu {
2022-03-28 11:22:11 +00:00
struct Args {
not_null<PeerData*> peer;
std::shared_ptr<Ui::Show> show;
};
void FillMuteMenu(
not_null<Ui::PopupMenu*> menu,
2022-03-28 11:22:11 +00:00
Args args);
void SetupMuteMenu(
not_null<Ui::RpWidget*> parent,
rpl::producer<> triggers,
2022-03-28 11:22:11 +00:00
Args args);
} // namespace MuteMenu