mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix repeated phoneCallRequested update handling.
This commit is contained in:
parent
c693b03a64
commit
a3e3bcd46d
2 changed files with 8 additions and 0 deletions
|
@ -101,6 +101,9 @@ public:
|
|||
[[nodiscard]] not_null<UserData*> user() const {
|
||||
return _user;
|
||||
}
|
||||
[[nodiscard]] uint64 id() const {
|
||||
return _id;
|
||||
}
|
||||
[[nodiscard]] bool isIncomingWaiting() const;
|
||||
|
||||
void start(bytes::const_span random);
|
||||
|
|
|
@ -482,6 +482,11 @@ void Instance::handleCallUpdate(
|
|||
LOG(("API Error: User not loaded for phoneCallRequested."));
|
||||
} else if (user->isSelf()) {
|
||||
LOG(("API Error: Self found in phoneCallRequested."));
|
||||
} else if (_currentCall
|
||||
&& _currentCall->user() == user
|
||||
&& _currentCall->id() == phoneCall.vid().v) {
|
||||
// May be a repeated phoneCallRequested update from getDifference.
|
||||
return;
|
||||
}
|
||||
const auto &config = session->serverConfig();
|
||||
if (inCall() || inGroupCall() || !user || user->isSelf()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue