From 0ad374556dfabebe9bdb87e444cf5adf1e79de49 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 10 Sep 2015 16:43:40 +0100 Subject: [PATCH] Add a comment for clarity. --- services/track-changes/app/coffee/UpdatesManager.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index 91a4877b35..49c2b6e1af 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -188,6 +188,8 @@ module.exports = UpdatesManager = for update in updates earliestUpdate = summarizedUpdates[summarizedUpdates.length - 1] if earliestUpdate and earliestUpdate.meta.start_ts - update.meta.end_ts < @TIME_BETWEEN_DISTINCT_UPDATES + # check if the user in this update is already present in the earliest update, + # if not, add them to the users list of the earliest update userExists = false for user in earliestUpdate.meta.users if (!user and !update.meta.user) or (user.id == update.meta.user?.id)