diff --git a/src/Scheduler.ts b/src/Scheduler.ts index 20d9b61..4f82c01 100644 --- a/src/Scheduler.ts +++ b/src/Scheduler.ts @@ -379,18 +379,6 @@ export class Scheduler { (task.talk.qa_startTime !== null ? `

During the talk, you can ask questions here for the Q&A at the end. ` + `The questions with the most 👍 votes are most visible to the speaker.

` : ''), ); - - try { - if (task.talk.track != '' && task.talk.track != undefined) { - const nameEventContent = await this.client.getRoomStateEvent(confAud.roomId, "m.room.name", ""); - if (task.talk.track != nameEventContent["name"]) { - nameEventContent["name"] = task.talk.track; - await this.client.sendStateEvent(confAud.roomId, "m.room.name", "", nameEventContent); - } - } - } catch (e) { - LogService.error("Scheduler:talkStart", `Error when considering changing name of track room`, e); - } } else if (task.type === ScheduledTaskType.TalkQA) { if (!task.talk.prerecorded) return; if (confTalk !== undefined) { diff --git a/src/backends/json/JsonScheduleLoader.ts b/src/backends/json/JsonScheduleLoader.ts index 13a5c81..7a3ec7a 100644 --- a/src/backends/json/JsonScheduleLoader.ts +++ b/src/backends/json/JsonScheduleLoader.ts @@ -75,7 +75,6 @@ export class JsonScheduleLoader { qa_startTime: null, // TODO livestream_endTime: endMoment.valueOf(), // TODO is this right? speakers: talk.speakers.map(speaker => this.convertSpeaker(speaker)), - track: "", // TODO we have multiple of them!!! // Must .clone() here because .startOf() mutates the moment(!) dateTs: startMoment.clone().startOf("day").valueOf(), diff --git a/src/backends/penta/PentabarfParser.ts b/src/backends/penta/PentabarfParser.ts index 195306a..0ba644d 100644 --- a/src/backends/penta/PentabarfParser.ts +++ b/src/backends/penta/PentabarfParser.ts @@ -249,7 +249,6 @@ export class PentabarfParser { slug: pEvent.slug, title: pEvent.title, subtitle: pEvent.subtitle, - track: pEvent.track, speakers: [], prerecorded: true, auditoriumId: auditorium.id, diff --git a/src/backends/pretalx/PretalxParser.ts b/src/backends/pretalx/PretalxParser.ts index e00be2f..f450f81 100644 --- a/src/backends/pretalx/PretalxParser.ts +++ b/src/backends/pretalx/PretalxParser.ts @@ -49,7 +49,6 @@ interface PretalxTalk { do_not_record: boolean, title: string, subtitle: string, - track: string, type: string, language: string, abstract: string, @@ -182,7 +181,6 @@ export async function parseFromJSON(rawJson: string, prefixConfig: IPrefixConfig startTime: eventDate.getTime(), subtitle: event.subtitle, title: event.title, - track: event.track, prerecorded: false, speakers: event.persons.map(p => ({ id: p.code, diff --git a/src/models/schedule.ts b/src/models/schedule.ts index dec3090..896228f 100644 --- a/src/models/schedule.ts +++ b/src/models/schedule.ts @@ -55,7 +55,6 @@ export interface ITalk { slug: string; title: string; subtitle: string; - track: string; /** * MISNOMER: This variable contains ALL people for the talk, NOT JUST speakers. * TODO rename (at a time when it's a less risky change to do...)