Open source video conferencing app powered by LiveKit. Built with Django and React.
π(frontend) ensure transcript segments are sorted by their timestamp
lebaudantoineff82bca9ec9f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 88232c1e..90e2f1ff 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,7 @@ and this project adheres to- βΏοΈ(frontend) announce copy state in invite dialog #877- π(frontend) align close dialog label in rooms locale #878- π©Ή(backend) use case-insensitive email matching in the external api #887+- π(frontend) ensure transcript segments are sorted by their timestamp #899## [1.3.0] - 2026-01-13diff --git a/src/frontend/src/features/subtitle/component/Subtitles.tsx b/src/frontend/src/features/subtitle/component/Subtitles.tsxindex 6783f48a..da004c4b 100644--- a/src/frontend/src/features/subtitle/component/Subtitles.tsx+++ b/src/frontend/src/features/subtitle/component/Subtitles.tsx@@ -13,7 +13,7 @@ export interface TranscriptionSegment {id: stringtext: stringlanguage: string- startTime: number+ startTime?: numberendTime: numberfinal: booleanfirstReceivedTime: number@@ -24,8 +24,9 @@ export interface TranscriptionRow {id: stringparticipant: Participantsegments: TranscriptionSegment[]- startTime: number+ startTime?: numberlastUpdateTime: number+ lastReceivedTime: number}const useTranscriptionState = () => {@@ -72,7 +73,9 @@ const useTranscriptionState = () => {id: `${participant.identity}-${now}`,participant,segments: [...segments],- startTime: Math.min(...segments.map((s) => s.startTime)),+ lastReceivedTime: Math.min(+ ...segments.map((s) => s.lastReceivedTime)+ ),lastUpdateTime: now,}updatedRows.push(newRow)@@ -228,7 +231,11 @@ export const Subtitles = () => {>{transcriptionRows.slice()- .reverse()+ .sort(+ (a, b) =>+ (b.startTime ?? b.lastUpdateTime) -+ (a.startTime ?? a.lastUpdateTime)+ ).map((row) => (<Transcription key={row.id} row={row} />))}