From 301ef1bdc6f8806d2aa6d1beca070f956bd715c7 Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Fri, 19 Sep 2014 09:17:18 +0200 Subject: [PATCH] Room id leaks: log them when then happens. Plus log the conditions that made them happen --- webclient/components/matrix/matrix-filter.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webclient/components/matrix/matrix-filter.js b/webclient/components/matrix/matrix-filter.js index 6233fc45f..dba511db6 100644 --- a/webclient/components/matrix/matrix-filter.js +++ b/webclient/components/matrix/matrix-filter.js @@ -113,6 +113,10 @@ angular.module('matrixFilter', []) if (undefined === roomName) { // By default, use the room ID roomName = room_id; + + // Log some information that lead to this leak + console.log("Room ID leak for " + room_id); + console.log("room object: " + JSON.stringify(room, undefined, 4)); } return roomName;