From 7152b51597cd01a8065bd3e1b8f0f6e98a526aa9 Mon Sep 17 00:00:00 2001 From: Andreas Hatziiliou <andreas.hatziiliou@savoirfairelinux.com> Date: Wed, 16 Oct 2024 15:25:56 -0400 Subject: [PATCH] screenshare: fix issue where screenshare didnt close When joining a callSwarm as a participant, your mediaList would contain 3 medias if a stream and video were active. The logic behind this function didn't take that into account. In the future it would be good to re-write this for arbitrary amounts of medias. Change-Id: If128650c535ae8ba9b02ec4738e8ef103f4994df --- src/libclient/api/call.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libclient/api/call.h b/src/libclient/api/call.h index cc63b08c9..dc0717d64 100644 --- a/src/libclient/api/call.h +++ b/src/libclient/api/call.h @@ -172,7 +172,7 @@ struct Info callInfo["is_sharing"] = false; } else { callInfo["is_sharing"] = true; - callInfo["preview_id"] = media[MediaAttributeKey::SOURCE]; + previewId = media[MediaAttributeKey::SOURCE]; } } if (media[MediaAttributeKey::ENABLED] == TRUE_STR -- GitLab