Skip to content

Commit

Permalink
Fix talk_start_5m error spam when physical rooms are in use (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre authored Feb 2, 2024
1 parent 313f8d9 commit a880e81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ export class Scheduler {
const resolved = (await resolveIdentifiers(this.client, userIds)).filter(p => p.mxid).map(p => p.mxid!);
await this.checkins.expectCheckinFrom(resolved);
}
} else if (task.type === ScheduledTaskType.TalkStart5M && confTalk !== undefined) {
} else if (task.type === ScheduledTaskType.TalkStart5M) {
if (confTalk === undefined) return;

if (!task.talk.prerecorded) {
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>`);
} else {
Expand Down

0 comments on commit a880e81

Please sign in to comment.