From bfce832a7af106ec9bd0056d5bd1cb225daf84eb Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 6 Dec 2020 18:12:24 +0400 Subject: [PATCH] Don't leave call when joining other call from other device. --- Telegram/SourceFiles/calls/calls_instance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/calls/calls_instance.cpp b/Telegram/SourceFiles/calls/calls_instance.cpp index e5e9f95100..38e3fb256e 100644 --- a/Telegram/SourceFiles/calls/calls_instance.cpp +++ b/Telegram/SourceFiles/calls/calls_instance.cpp @@ -411,7 +411,8 @@ void Instance::handleGroupCallUpdate( existing->applyUpdate(update); } if (_currentGroupCall - && (&_currentGroupCall->channel()->session() == session)) { + && (&_currentGroupCall->channel()->session() == session) + && (_currentGroupCall->id() == callId)) { _currentGroupCall->handleUpdate(update); } }