2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Support broadcast mode in voice chats.

This commit is contained in:
John Preston
2021-03-08 18:39:36 +04:00
parent ccd440ea0b
commit f66d7088ef
8 changed files with 232 additions and 29 deletions

View File

@@ -934,13 +934,13 @@ void SessionController::closeThirdSection() {
void SessionController::startOrJoinGroupCall(
not_null<PeerData*> peer,
bool confirmedLeaveOther) {
const auto channel = peer->asChannel();
if (channel && channel->amAnonymous()) {
Ui::ShowMultilineToast({
.text = { tr::lng_group_call_no_anonymous(tr::now) },
});
return;
}
//const auto channel = peer->asChannel(); // #TODO calls
//if (channel && channel->amAnonymous()) {
// Ui::ShowMultilineToast({
// .text = { tr::lng_group_call_no_anonymous(tr::now) },
// });
// return;
//}
auto &calls = Core::App().calls();
const auto confirm = [&](QString text, QString button) {
Ui::show(Box<ConfirmBox>(text, button, crl::guard(this, [=] {