Fix an issue with messenger while opening the same tab twice

This commit is contained in:
yflory
2018-09-10 18:16:24 +02:00
parent 216c94b1f0
commit 40c7cdd7c8
2 changed files with 7 additions and 0 deletions

View File

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