Skip to content

Commit

Permalink
Merge pull request #819 from Infomaniak/revert-indexed
Browse files Browse the repository at this point in the history
fix(Thread): Remove indexed date to prevent default value
  • Loading branch information
valentinperignon committed Jun 20, 2023
2 parents d04f7a2 + a942ab6 commit b602194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MailCore/Cache/MailboxManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class MailboxManager: ObservableObject {
let realmName = "\(mailbox.userId)-\(mailbox.mailboxId).realm"
realmConfiguration = Realm.Configuration(
fileURL: MailboxManager.constants.rootDocumentsURL.appendingPathComponent(realmName),
schemaVersion: 10,
schemaVersion: 11,
deleteRealmIfMigrationNeeded: true,
objectTypes: [
Folder.self,
Expand Down
2 changes: 1 addition & 1 deletion MailCore/Models/Thread.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Thread: Object, Decodable, Identifiable {
@Persisted public var cc: List<Recipient>
@Persisted public var bcc: List<Recipient>
@Persisted public var subject: String?
@Persisted(indexed: true) public var date: Date
@Persisted public var date: Date
@Persisted public var hasAttachments: Bool
@Persisted public var hasSwissTransferAttachments: Bool
@Persisted public var hasDrafts: Bool
Expand Down

0 comments on commit b602194

Please sign in to comment.