mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
This should allow calling another authed account.
This commit is contained in:
parent
864959aee0
commit
9615347634
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue