2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Reuse p2p call window for migrated confcall.

This commit is contained in:
John Preston
2025-04-08 17:24:31 +04:00
parent 915dec7ba5
commit 59e56600bc
17 changed files with 606 additions and 545 deletions

View File

@@ -349,7 +349,11 @@ void Instance::playSoundOnce(const QString &key) {
void Instance::destroyCall(not_null<Call*> call) {
if (_currentCall.get() == call) {
_currentCallPanel->closeBeforeDestroy();
const auto groupCallWindow = _currentGroupCallPanel
? _currentGroupCallPanel->window().get()
: nullptr;
const auto reused = (_currentCallPanel->window() == groupCallWindow);
_currentCallPanel->closeBeforeDestroy(reused);
_currentCallPanel = nullptr;
auto taken = base::take(_currentCall);