From 5c077b698fbc81e08f71e4a2aa245026985f3bbf Mon Sep 17 00:00:00 2001 From: Zuzanna Date: Tue, 11 Nov 2025 16:24:48 +0100 Subject: [PATCH] wip --- www/common/onlyoffice/history.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/onlyoffice/history.js b/www/common/onlyoffice/history.js index 206796ae0..ceda26710 100644 --- a/www/common/onlyoffice/history.js +++ b/www/common/onlyoffice/history.js @@ -68,7 +68,9 @@ define([ var getVersion = function (position, initial) { if (Object.keys(ooMessages).length) { console.log('here', id) + var version = (id === -1 || id === 0) ? 0 : id; + if (!position) { position = ooMessages[id].length || 0 }