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:
@@ -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, [=] {
|
||||
|
Reference in New Issue
Block a user