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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user