mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-12-22 08:12:44 +00:00
tile.lua: simplify detection if we want to announce a talk
This commit is contained in:
parent
bb22771740
commit
d3660931fb
1 changed files with 3 additions and 3 deletions
6
tile.lua
6
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
|
||||
|
|
Loading…
Reference in a new issue