Returned ability to schedule livestreams to admins.

This commit is contained in:
23rd 2022-03-17 16:53:08 +03:00
parent 2c6971e91f
commit 0a35931d0b
1 changed files with 6 additions and 6 deletions

View File

@ -240,11 +240,9 @@ void ChooseJoinAsBox(
style::margins());
delegate->setContent(content);
controller->setDelegate(delegate);
auto next = (context == Context::Switch)
? tr::lng_settings_save()
: tr::lng_continue();
#if 0
if ((context == Context::Create)) {
const auto &peer = info.peer;
if ((context == Context::Create)
&& (peer->isChannel() && peer->asChannel()->hasAdminRights())) {
const auto makeLink = [](const QString &text) {
return Ui::Text::Link(text);
};
@ -265,7 +263,9 @@ void ChooseJoinAsBox(
return false;
});
}
#endif
auto next = (context == Context::Switch)
? tr::lng_settings_save()
: tr::lng_continue();
box->addButton(std::move(next), [=] {
auto copy = info;
copy.joinAs = controller->selected();