mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
remove ds.length == 0 condition for preferUntransformed
This commit is contained in:
@@ -96,9 +96,8 @@ export async function computeMessageSyncStep1 (decoder, encoder, conn, senderCon
|
||||
conn.y.db.requestTransaction(function * () {
|
||||
encoder.writeVarString('sync step 2')
|
||||
encoder.writeVarString(conn.authInfo || '')
|
||||
let emptyStateSet = this.ds.length === 0 // TODO: length may not always be available
|
||||
|
||||
if (preferUntransformed && emptyStateSet) {
|
||||
if (preferUntransformed) {
|
||||
encoder.writeUint8(1)
|
||||
yield * this.writeOperationsUntransformed(encoder)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user