From e4f84b9f69de12c17dc791aa701bed10d16c7c8f Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Tue, 30 Mar 2021 17:39:23 +0100 Subject: [PATCH] Merge pull request #3854 from overleaf/tm-show-new-editors-with-track-changes Fix newly added collaborators not showing track-changes as enabled GitOrigin-RevId: 20a4ca3278cbea8a50b6c285b8fc416a34dfcf52 --- .../ide/review-panel/controllers/ReviewPanelController.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js b/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js index 8752db94fa..3b7700dab6 100644 --- a/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js +++ b/services/web/frontend/js/ide/review-panel/controllers/ReviewPanelController.js @@ -151,6 +151,14 @@ export default App.controller('ReviewPanelController', function( const result = [] for (let member of Array.from(members)) { if (member.privileges === 'readAndWrite') { + if ($scope.reviewPanel.trackChangesState[member._id] == null) { + // An added member will have track changes enabled if track changes is on for everyone + _setUserTCState( + member._id, + $scope.reviewPanel.trackChangesOnForEveryone, + true + ) + } result.push( ($scope.reviewPanel.formattedProjectMembers[ member._id