hack around onSettle not doing its job

This commit is contained in:
ansuz 2017-02-28 11:05:59 +01:00
parent 69b6f80e4b
commit 12aec60a12

View File

@ -66,7 +66,10 @@ define([
};
var whenRealtimeSyncs = common.whenRealtimeSyncs = function (realtime, cb) {
realtime.sync();
// FIXME realtime.onSettle should handle this but it doesn't seem to
if (realtime.getAuthDoc() === realtime.getUserDoc()) {
return void cb();
}
realtime.onSettle(cb);
};