diff --git a/web/src/timerender.ts b/web/src/timerender.ts index 020d0e137f..94e0678b9a 100644 --- a/web/src/timerender.ts +++ b/web/src/timerender.ts @@ -240,9 +240,6 @@ export function last_seen_status_from_date( current_date = new Date(), ): string { const minutes = differenceInMinutes(current_date, last_active_date); - if (minutes <= 2) { - return $t({defaultMessage: "Active just now"}); - } if (minutes < 60) { return $t({defaultMessage: "Active {minutes} minutes ago"}, {minutes}); } diff --git a/web/tests/timerender.test.js b/web/tests/timerender.test.js index 3284abed41..6398e8b2b8 100644 --- a/web/tests/timerender.test.js +++ b/web/tests/timerender.test.js @@ -473,12 +473,6 @@ run_test("last_seen_status_from_date", () => { assert.equal(actual_status, expected_status); } - assert_same({seconds: -20}, $t({defaultMessage: "Active just now"})); - - assert_same({minutes: -1}, $t({defaultMessage: "Active just now"})); - - assert_same({minutes: -2}, $t({defaultMessage: "Active just now"})); - assert_same({minutes: -30}, $t({defaultMessage: "Active 30 minutes ago"})); assert_same({hours: -1}, $t({defaultMessage: "Active an hour ago"}));