Merge branch 'soon' into staging
This commit is contained in:
@@ -1005,6 +1005,9 @@ define([
|
||||
});
|
||||
};
|
||||
Store.setPadTitle = function (clientId, data, cb) {
|
||||
if (store.offline) {
|
||||
return void cb({ error: 'OFFLINE' });
|
||||
}
|
||||
var title = data.title;
|
||||
var href = data.href;
|
||||
var channel = data.channel;
|
||||
@@ -1831,6 +1834,10 @@ define([
|
||||
if (!cmdData || !cmdData.cmd) { return; }
|
||||
//var data = cmdData.data;
|
||||
var s = getStore(cmdData.teamId);
|
||||
if (s.offline) {
|
||||
broadcast([], 'NETWORK_DISCONNECT');
|
||||
return void cb({ error: 'OFFLINE' });
|
||||
}
|
||||
var cb2 = function (data2) {
|
||||
// Send the CHANGE event to all the stores because the command may have
|
||||
// affected data from a shared folder used by multiple teams.
|
||||
@@ -2289,9 +2296,11 @@ define([
|
||||
});
|
||||
|
||||
rt.proxy.on('disconnect', function () {
|
||||
store.offline = true;
|
||||
broadcast([], 'NETWORK_DISCONNECT');
|
||||
});
|
||||
rt.proxy.on('reconnect', function (info) {
|
||||
store.offline = false;
|
||||
broadcast([], 'NETWORK_RECONNECT', {myId: info.myId});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user