mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-08 08:05:06 +00:00
Add a comment for clarity.
This commit is contained in:
parent
97326308fa
commit
0ad374556d
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue