Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Yemma4/Services/ConversationStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ final class ConversationStore {
private func loadIndexAsync() async {
let decoded = await Task.detached(priority: .utility) { [indexURL] in
let decoder = JSONDecoder()
decoder.dateDecodingStrategy = .iso8601
guard let data = try? Data(contentsOf: indexURL) else {
return [ConversationMetadata]()
}
Expand Down Expand Up @@ -647,6 +648,7 @@ private enum ConversationSnapshotLoader {
}

let decoder = JSONDecoder()
decoder.dateDecodingStrategy = .iso8601
guard let conversation = try? decoder.decode(PersistedConversation.self, from: data) else {
return nil
}
Expand Down