feat: use a default template for automatic notes

This commit is contained in:
2026-07-15 23:28:39 +02:00
parent bcc16cd53f
commit 97eb58d1dc
8 changed files with 57 additions and 31 deletions
+2 -4
View File
@@ -244,7 +244,7 @@ private final class LocalRecordingController {
return statusPayload()
}
let meeting = Meeting()
let meeting = Meeting(templateId: LocalStorageManager.shared.preferredTemplateID())
guard LocalStorageManager.shared.saveMeeting(meeting) else {
throw LocalRecordingError.saveFailed
}
@@ -288,9 +288,7 @@ private final class LocalRecordingController {
meeting.transcriptChunks = chunks
let templates = LocalStorageManager.shared.loadTemplates()
if meeting.templateId == nil {
meeting.templateId = UserDefaultsManager.shared.selectedTemplateId
?? templates.first(where: { $0.title == "Standard Meeting" })?.id
?? templates.first?.id
meeting.templateId = LocalStorageManager.shared.preferredTemplateID(in: templates)
}
_ = LocalStorageManager.shared.saveMeeting(meeting)
NotificationCenter.default.post(name: .meetingSaved, object: meeting)