summaryrefslogtreecommitdiff
path: root/ui/lib/runs.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/runs.js')
-rw-r--r--ui/lib/runs.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/lib/runs.js b/ui/lib/runs.js
index f4e90be..e3d4c20 100644
--- a/ui/lib/runs.js
+++ b/ui/lib/runs.js
@@ -21,5 +21,13 @@ function runKey(message) {
}
function continueRun([lastSender, lastAt], [newSender, newAt]) {
- return lastSender === newSender && newAt - lastAt < RUN_COALESCE_MAX_INTERVAL;
+ const { id: lastId, name: lastName } = lastSender;
+ const { id: newId, name: newName } = newSender;
+ if (lastId !== newId) {
+ return false;
+ }
+ if (lastName !== newName) {
+ return false;
+ }
+ return newAt - lastAt < RUN_COALESCE_MAX_INTERVAL;
}