This should allow calling another authed account.
This commit is contained in:
parent
864959aee0
commit
9615347634
|
@ -589,6 +589,15 @@ void Instance::handleCallUpdate(
|
||||||
// May be a repeated phoneCallRequested update from getDifference.
|
// May be a repeated phoneCallRequested update from getDifference.
|
||||||
return;
|
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();
|
const auto &config = session->serverConfig();
|
||||||
if (inCall() || inGroupCall() || !user || user->isSelf()) {
|
if (inCall() || inGroupCall() || !user || user->isSelf()) {
|
||||||
const auto flags = phoneCall.is_video()
|
const auto flags = phoneCall.is_video()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user