Don't open other pads' chat in the current pad's messenger

This commit is contained in:
yflory
2018-09-10 17:43:19 +02:00
parent 826b217c55
commit 382690e5c8
2 changed files with 7 additions and 0 deletions

View File

@@ -708,6 +708,8 @@ define([
};
var onPadChatReady = function (data) {
var padChat = common.getPadChat();
if (data !== padChat) { return; }
execCommand('GET_ROOMS', {padChat: data}, function (err, rooms) {
if (err) { return void console.error(err); }
if (!Array.isArray(rooms) || rooms.length !== 1) {