From d3660931fb50c6ad8259e42c6103a4302131020b Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 30 Sep 2023 10:20:26 +0200 Subject: [PATCH] tile.lua: simplify detection if we want to announce a talk --- tile.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tile.lua b/tile.lua index 3465c3f..3ba928b 100644 --- a/tile.lua +++ b/tile.lua @@ -96,9 +96,9 @@ local function check_next_talks() for idx = 1, #schedule do local talk = schedule[idx] - -- Ignore all talks that started long before now or have already - -- ended here. We don't want to announce these. - if (talk.start_ts > min_start and talk.end_ts > time) or talk.end_ts > time then + -- Ignore all talks that have already ended here. We don't want + -- to announce these. + if talk.end_ts > time then -- is this in *this* room, or somewhere else? if current_room and talk.room == current_room then room_next_talks[#room_next_talks+1] = talk