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