diff --git a/src/commands/ScheduleCommand.ts b/src/commands/ScheduleCommand.ts
index f1ed586..7d4898f 100644
--- a/src/commands/ScheduleCommand.ts
+++ b/src/commands/ScheduleCommand.ts
@@ -33,8 +33,7 @@ export class ScheduleCommand implements ICommand {
const upcoming = sortTasks(this.scheduler.inspect());
let html = "Upcoming tasks:
";
for (const task of upcoming) {
- const talkRoom = this.conference.getTalk(task.talk.id);
- if (!talkRoom) continue;
+ const hasTalkRoom = this.conference.getTalk(task.talk.id) !== null;
const taskStart = moment(getStartTime(task));
const formattedTimestamp = taskStart.format("YYYY-MM-DD HH:mm:ss [UTC]ZZ");
@@ -45,7 +44,8 @@ export class ScheduleCommand implements ICommand {
html = "…";
}
- html += `- ${formattedTimestamp}: ${task.type} on ${await talkRoom.getName()} (
${task.id}
) ${taskStart.fromNow()} `;
+ const hasRoomIndicator = hasTalkRoom ? '(has talk room)' : '(no talk room)';
+ html += `- ${formattedTimestamp}: ${task.type} on ${task.talk.title} ${hasRoomIndicator} (
${task.id}
) ${taskStart.fromNow()} `;
}
html += "
";
await this.client.sendHtmlNotice(roomId, html);