From 45de0d6f291717abaf320e833ab32fada244edad Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 27 Dec 2023 13:01:03 +0100 Subject: [PATCH] hide long-ago started talks from static view as well --- node.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node.lua b/node.lua index bb7f74f..48c3dc9 100644 --- a/node.lua +++ b/node.lua @@ -73,12 +73,14 @@ local function check_next_talks() all_next_talks = {} + local min_start = time - 25 * 60 + for idx = 1, #schedule do local talk = schedule[idx] -- Ignore all talks that have already ended here. We don't want -- to announce these. - if talk.end_ts > time then + if talk.end_ts > time and talk.start_ts > min_start then all_next_talks[#all_next_talks+1] = talk end end