Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
commit
c0278ba77f
5 files changed
+12
-8
No files matched your search
@@ -66,11 +66,15 @@ define([
|
||||
};
|
||||
|
||||
var whenRealtimeSyncs = common.whenRealtimeSyncs = function (realtime, cb) {
|
||||
// FIXME realtime.onSettle should handle this but it doesn't seem to
|
||||
if (realtime.getAuthDoc() === realtime.getUserDoc()) {
|
||||
return void cb();
|
||||
}
|
||||
realtime.onSettle(cb);
|
||||
realtime.sync();
|
||||
window.setTimeout(function () {
|
||||
if (realtime.getAuthDoc() === realtime.getUserDoc()) {
|
||||
return void cb();
|
||||
}
|
||||
realtime.onSettle(function () {
|
||||
cb();
|
||||
});
|
||||
}, 0);
|
||||
};
|
||||
|
||||
var getWebsocketURL = common.getWebsocketURL = function () {
|
||||
|
||||
Reference in new issue
Block a user