Skip to content

Commit a880e81

Browse files
authored
Fix talk_start_5m error spam when physical rooms are in use (#224)
1 parent 313f8d9 commit a880e81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Scheduler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ export class Scheduler {
415415
const resolved = (await resolveIdentifiers(this.client, userIds)).filter(p => p.mxid).map(p => p.mxid!);
416416
await this.checkins.expectCheckinFrom(resolved);
417417
}
418-
} else if (task.type === ScheduledTaskType.TalkStart5M && confTalk !== undefined) {
418+
} else if (task.type === ScheduledTaskType.TalkStart5M) {
419+
if (confTalk === undefined) return;
420+
419421
if (!task.talk.prerecorded) {
420422
await this.client.sendHtmlText(confTalk.roomId, `<h3>Your talk starts in about 5 minutes</h3><p><b>Your talk is not pre-recorded.</b> Your talk's full duration will be Q&A.</p>`);
421423
} else {

0 commit comments

Comments
 (0)