2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add schedule voice chat link in ConfirmBox.

This commit is contained in:
John Preston
2021-04-07 11:21:59 +04:00
parent 27fc61c676
commit 96bc4858c1
7 changed files with 87 additions and 49 deletions

View File

@@ -395,12 +395,7 @@ void GroupCall::join(const MTPInputGroupCall &inputCall) {
_id = data.vid().v;
_accessHash = data.vaccess_hash().v;
});
if (_scheduleDate) {
setState(State::Waiting);
return;
}
setState(State::Joining);
setState(_scheduleDate ? State::Waiting : State::Joining);
if (const auto chat = _peer->asChat()) {
chat->setGroupCall(inputCall);
} else if (const auto group = _peer->asChannel()) {
@@ -408,6 +403,10 @@ void GroupCall::join(const MTPInputGroupCall &inputCall) {
} else {
Unexpected("Peer type in GroupCall::join.");
}
if (_scheduleDate) {
return;
}
rejoin();
using Update = Data::GroupCall::ParticipantUpdate;