From d70ad97b2d4162c6fb5f7417485598fa4c697889 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 23 Jul 2021 00:38:36 +0300 Subject: [PATCH] [DE mobile] Fix track changes --- apps/common/mobile/lib/controller/collaboration/Review.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/common/mobile/lib/controller/collaboration/Review.jsx b/apps/common/mobile/lib/controller/collaboration/Review.jsx index 830ab10de..1ffa6780d 100644 --- a/apps/common/mobile/lib/controller/collaboration/Review.jsx +++ b/apps/common/mobile/lib/controller/collaboration/Review.jsx @@ -17,7 +17,10 @@ class InitReview extends Component { Common.Notifications.on('document:ready', () => { const api = Common.EditorApi.get(); const appOptions = props.storeAppOptions; - api.asc_SetTrackRevisions(appOptions.isReviewOnly || LocalStorage.getBool("de-mobile-track-changes-" + (appOptions.fileKey || ''))); + + var trackChanges = typeof (appOptions.customization) == 'object' ? appOptions.customization.trackChanges : undefined; + api.asc_SetTrackRevisions(appOptions.isReviewOnly || trackChanges===true || (trackChanges!==false) && LocalStorage.getBool("de-mobile-track-changes-" + (appOptions.fileKey || ''))); + // Init display mode if (!appOptions.canReview) { const canViewReview = appOptions.isEdit || api.asc_HaveRevisionsChanges(true);