1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

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
This commit is contained in:
Andreas Hatziiliou 2024-10-16 15:25:56 -04:00 committed by François-Simon Fauteux-Chapleau
parent 4a53397561
commit 7152b51597

View file

@ -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