don't announce talks that have started more than 25 minutes ago

This commit is contained in:
Franzi 2023-12-27 11:32:02 +01:00
parent ef96cfb88c
commit fb1c6c0dc6
2 changed files with 2 additions and 4 deletions

View file

@ -73,8 +73,6 @@ local function check_next_talks()
all_next_talks = {} all_next_talks = {}
local min_start = time - 25 * 60
for idx = 1, #schedule do for idx = 1, #schedule do
local talk = schedule[idx] local talk = schedule[idx]

View file

@ -122,9 +122,9 @@ local function check_next_talks()
-- Ignore all talks that have already ended here. We don't want -- Ignore all talks that have already ended here. We don't want
-- to announce these. -- to announce these.
if talk.end_ts > time then if talk.end_ts > time and talk.start_ts > min_start then
-- is this in *this* room, or somewhere else? -- is this in *this* room, or somewhere else?
if current_room and talk.room == current_room and talk.start_ts > min_start then if current_room and talk.room == current_room then
room_next_talks[#room_next_talks+1] = talk room_next_talks[#room_next_talks+1] = talk
end end
all_next_talks[#all_next_talks+1] = talk all_next_talks[#all_next_talks+1] = talk