Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix(android): a long meeting's live notes no longer give a topic a start time minutes after what was said in it

wquguru101079358c29
diff --git a/android/core/src/main/kotlin/cicada/Notes.kt b/android/core/src/main/kotlin/cicada/Notes.kt
index 29e9cef..b3aff2c 100644
--- a/android/core/src/main/kotlin/cicada/Notes.kt
+++ b/android/core/src/main/kotlin/cicada/Notes.kt
@@ -290,6 +290,8 @@ class NotesEngine(private val ling: LingClient, private val store: SessionStore)
for (t in next.topics) {
val times = t.points.mapIndexed { i, p -> min(t.pointTime(i), known[p]) }.toMutableList()
t.pointTimes = if (times.any { it != null }) times else null
+ // A topic starts no later than its first point (the reply dates it from the lines it cites now).
+ times.filterNotNull().minOrNull()?.let { if (it < t.start) t.start = it }
}
val items = HashMap<String, Double>()
for (i in old.conclusions + old.todos) i.t?.let { items.putIfAbsent(i.text, it) }