From 48cee21d745b4f6fb483d76cde24b4e2d3c7f992 Mon Sep 17 00:00:00 2001 From: Ivan Sein Date: Wed, 8 Mar 2017 17:12:55 +0100 Subject: [PATCH] Check against sessions to create roomDescription when joining a room. Signed-off-by: Ivan Sein --- js/xhrconnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/xhrconnection.js b/js/xhrconnection.js index 606a92742..0cdfae4db 100644 --- a/js/xhrconnection.js +++ b/js/xhrconnection.js @@ -43,7 +43,7 @@ var sessionId = ''; }; result.forEach(function(element) { - if(OC.getCurrentUser()['uid'] !== element['userId']) { + if(sessionId !== element['sessionId']) { roomDescription['clients'][element['sessionId']] = { 'video': true };