File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class YSocketIO {
201
201
; ( async ( ) => {
202
202
assert ( this . client )
203
203
assert ( socket . user )
204
- const doc = WORKER_DISABLED && this . namespaceDocMap . get ( namespace ) || ( await this . client . getDoc ( namespace , 'index' ) )
204
+ const doc = ( WORKER_DISABLED && this . namespaceDocMap . get ( namespace ) ) || ( await this . client . getDoc ( namespace , 'index' ) )
205
205
if ( WORKER_DISABLED ) this . namespaceDocMap . set ( namespace , doc )
206
206
207
207
if (
@@ -247,7 +247,7 @@ export class YSocketIO {
247
247
) => {
248
248
assert ( this . client )
249
249
const namespace = this . getNamespaceString ( socket . nsp )
250
- const doc = WORKER_DISABLED && this . namespaceDocMap . get ( namespace ) || ( await this . client . getDoc ( namespace , 'index' ) )
250
+ const doc = ( WORKER_DISABLED && this . namespaceDocMap . get ( namespace ) ) || ( await this . client . getDoc ( namespace , 'index' ) )
251
251
if ( WORKER_DISABLED ) this . namespaceDocMap . set ( namespace , doc )
252
252
assert ( doc )
253
253
syncStep2 ( Y . encodeStateAsUpdate ( doc . ydoc , stateVector ) )
You can’t perform that action at this time.
0 commit comments