Fix an issue with messenger while opening the same tab twice
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user