Returned ability to schedule livestreams to admins.
This commit is contained in:
parent
2c6971e91f
commit
0a35931d0b
|
@ -240,11 +240,9 @@ void ChooseJoinAsBox(
|
||||||
style::margins());
|
style::margins());
|
||||||
delegate->setContent(content);
|
delegate->setContent(content);
|
||||||
controller->setDelegate(delegate);
|
controller->setDelegate(delegate);
|
||||||
auto next = (context == Context::Switch)
|
const auto &peer = info.peer;
|
||||||
? tr::lng_settings_save()
|
if ((context == Context::Create)
|
||||||
: tr::lng_continue();
|
&& (peer->isChannel() && peer->asChannel()->hasAdminRights())) {
|
||||||
#if 0
|
|
||||||
if ((context == Context::Create)) {
|
|
||||||
const auto makeLink = [](const QString &text) {
|
const auto makeLink = [](const QString &text) {
|
||||||
return Ui::Text::Link(text);
|
return Ui::Text::Link(text);
|
||||||
};
|
};
|
||||||
|
@ -265,7 +263,9 @@ void ChooseJoinAsBox(
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
auto next = (context == Context::Switch)
|
||||||
|
? tr::lng_settings_save()
|
||||||
|
: tr::lng_continue();
|
||||||
box->addButton(std::move(next), [=] {
|
box->addButton(std::move(next), [=] {
|
||||||
auto copy = info;
|
auto copy = info;
|
||||||
copy.joinAs = controller->selected();
|
copy.joinAs = controller->selected();
|
||||||
|
|
Loading…
Reference in New Issue