fix read-only synchronization bug

pull/1/head
ansuz 2017-07-31 12:21:48 +02:00
parent 777dea2014
commit a68a225d79
1 changed files with 8 additions and 0 deletions
www/common

View File

@ -687,6 +687,14 @@ define([
config.realtime.onPatch(ks(toolbar, config));
config.realtime.onMessage(ks(toolbar, config, true));
}
// without this, users in read-only mode say 'synchronizing' until they
// receive a patch.
if (Cryptpad) {
typing = 0;
Cryptpad.whenRealtimeSyncs(config.realtime, function () {
kickSpinner(toolbar, config);
});
}
return $spin;
};