From 0db262da6a9c8066c36bd298a6465312f167da3b Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 21 Jan 2016 10:45:19 -0600 Subject: [PATCH] Fixes showing local resolution in UI. --- modules/UI/videolayout/VideoLayout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index cb59dd58f..cab365160 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -732,7 +732,9 @@ var VideoLayout = { let resolutions = {}; if (object.resolution !== null) { resolutions = object.resolution; - object.resolution = resolutions[APP.conference.localId]; + var id = Strophe.getResourceFromJid( + APP.conference._room.room.session.me); + object.resolution = resolutions[id]; } localVideoThumbnail.updateStatsIndicator(percent, object);