Skip to content

Commit

Permalink
Remove field ITalk.track
Browse files Browse the repository at this point in the history
Since now tracks == auditoria, there is no need for
having this extra datapoint (which ultimately could
lead to more confusion than good)
  • Loading branch information
reivilibre committed Dec 16, 2024
1 parent a7583ca commit cabdd1c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions src/Scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,6 @@ export class Scheduler {
(task.talk.qa_startTime !== null ? `<p>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.</p>` : ''),
);

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) {
Expand Down
1 change: 0 additions & 1 deletion src/backends/json/JsonScheduleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion src/backends/penta/PentabarfParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/backends/pretalx/PretalxParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ interface PretalxTalk {
do_not_record: boolean,
title: string,
subtitle: string,
track: string,
type: string,
language: string,
abstract: string,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/models/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit cabdd1c

Please sign in to comment.