Returned ability to schedule livestreams to admins.
This commit is contained in:
parent
2c6971e91f
commit
0a35931d0b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue