@ -2277,6 +2277,9 @@ define([
try {
store.onlyoffice.leavePad(chanId);
} catch (e) { console.error(e); }
Cache.leaveChannel(chanId);
if (!Store.channels[chanId]) { return; }
@ -117,6 +117,13 @@ define([
});
};
S.leaveChannel = function (id) {
if (t[id] && typeof(t[id].clear) === "function") {
t[id].clear();
}
delete t[id];
S.clearChannel = function (id, cb) {
cb = Util.once(Util.mkAsync(cb || function () {}));