2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add group call settings box.

This commit is contained in:
John Preston
2020-11-28 19:18:51 +03:00
parent abb81c764e
commit 9e5006dd67
11 changed files with 369 additions and 219 deletions

View File

@@ -38,7 +38,13 @@ GroupCall::GroupCall(
: _delegate(delegate)
, _channel(channel)
, _api(&_channel->session().mtp()) {
if (inputCall.c_inputGroupCall().vid().v) {
const auto id = inputCall.c_inputGroupCall().vid().v;
if (id) {
if (const auto call = _channel->call(); call && call->id() == id) {
if (!_channel->canManageCall() && call->joinMuted()) {
_muted = MuteState::ForceMuted;
}
}
_state = State::Joining;
join(inputCall);
} else {