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.

chore(ios): let the mainShow dev command open the newest meeting's notes

wqugurudf9b545f27d1
diff --git a/ios/Sources/Cicada/Debug.swift b/ios/Sources/Cicada/Debug.swift
index ae31a1a..f98cd0e 100644
--- a/ios/Sources/Cicada/Debug.swift
+++ b/ios/Sources/Cicada/Debug.swift
@@ -80,8 +80,8 @@ extension AppModel {
searchPath = []
query = arg
case "mainShow":
- // mainShow:<id>[,transcript|notes]
- let parts = arg.split(separator: ",").map(String.init)
+ // mainShow:<id>[,transcript|notes]; an empty id is the newest meeting
+ let parts = arg.split(separator: ",", omittingEmptySubsequences: false).map(String.init)
tab = .records
selection = parts.first.flatMap { id in store.sessions.contains(where: { $0.id == id }) ? id : nil }
?? store.sessions.first?.id