|
|
@ -1262,9 +1262,15 @@ define([
|
|
|
|
var messengerEventClients = [];
|
|
|
|
var messengerEventClients = [];
|
|
|
|
|
|
|
|
|
|
|
|
var dropChannel = function (chanId) {
|
|
|
|
var dropChannel = function (chanId) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
store.messenger.leavePad(chanId);
|
|
|
|
store.messenger.leavePad(chanId);
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
|
|
|
try {
|
|
|
|
store.cursor.leavePad(chanId);
|
|
|
|
store.cursor.leavePad(chanId);
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
|
|
|
try {
|
|
|
|
store.onlyoffice.leavePad(chanId);
|
|
|
|
store.onlyoffice.leavePad(chanId);
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
|
|
|
|
|
|
|
if (!Store.channels[chanId]) { return; }
|
|
|
|
if (!Store.channels[chanId]) { return; }
|
|
|
|
|
|
|
|
|
|
|
@ -1283,8 +1289,12 @@ define([
|
|
|
|
if (messengerIdx !== -1) {
|
|
|
|
if (messengerIdx !== -1) {
|
|
|
|
messengerEventClients.splice(messengerIdx, 1);
|
|
|
|
messengerEventClients.splice(messengerIdx, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
store.cursor.removeClient(clientId);
|
|
|
|
store.cursor.removeClient(clientId);
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
|
|
|
try {
|
|
|
|
store.onlyoffice.removeClient(clientId);
|
|
|
|
store.onlyoffice.removeClient(clientId);
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
|
|
|
|
|
|
|
Object.keys(Store.channels).forEach(function (chanId) {
|
|
|
|
Object.keys(Store.channels).forEach(function (chanId) {
|
|
|
|
var chanIdx = Store.channels[chanId].clients.indexOf(clientId);
|
|
|
|
var chanIdx = Store.channels[chanId].clients.indexOf(clientId);
|
|
|
|