From 12aec60a12ff5287845723d249a3125539504404 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 28 Feb 2017 11:05:59 +0100 Subject: [PATCH] hack around onSettle not doing its job --- www/common/cryptpad-common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index f5246cd24..b7df025a2 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -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); };