From ea4e9a0007a7d19ee913647f47b17aebd08bdef1 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sun, 14 Nov 2021 13:10:52 +0100 Subject: [PATCH] change order of logging statement for debugging --- src/utils/Transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Transaction.js b/src/utils/Transaction.js index 865e727c..a9ab6afa 100644 --- a/src/utils/Transaction.js +++ b/src/utils/Transaction.js @@ -331,8 +331,8 @@ const cleanupTransactions = (transactionCleanups, i) => { } } if (!transaction.local && transaction.afterState.get(doc.clientID) !== transaction.beforeState.get(doc.clientID)) { - doc.clientID = generateNewClientId() logging.print(logging.ORANGE, logging.BOLD, '[yjs] ', logging.UNBOLD, logging.RED, 'Changed the client-id because another client seems to be using it.') + doc.clientID = generateNewClientId() } // @todo Merge all the transactions into one and provide send the data as a single update message doc.emit('afterTransactionCleanup', [transaction, doc])