This should allow calling another authed account.

This commit is contained in:
John Preston 2023-04-27 15:23:06 +04:00
parent 864959aee0
commit 9615347634
1 changed files with 9 additions and 0 deletions

View File

@ -589,6 +589,15 @@ void Instance::handleCallUpdate(
// May be a repeated phoneCallRequested update from getDifference.
return;
}
if (inCall()
&& _currentCall->type() == Call::Type::Outgoing
&& _currentCall->user()->id == session->userPeerId()
&& (peerFromUser(phoneCall.vparticipant_id())
== _currentCall->user()->session().userPeerId())) {
// Ignore call from the same running app, other account.
return;
}
const auto &config = session->serverConfig();
if (inCall() || inGroupCall() || !user || user->isSelf()) {
const auto flags = phoneCall.is_video()