Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Stop decoding subBody #885

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
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: 1 addition & 1 deletion MailCore/Cache/MailboxManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class MailboxManager: ObservableObject {
let realmName = "\(mailbox.userId)-\(mailbox.mailboxId).realm"
realmConfiguration = Realm.Configuration(
fileURL: MailboxManager.constants.rootDocumentsURL.appendingPathComponent(realmName),
schemaVersion: 15,
schemaVersion: 16,
objectTypes: [
Folder.self,
Thread.self,
Expand Down
3 changes: 0 additions & 3 deletions MailCore/Models/Message.swift
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ public struct BodyResult: Codable {
final class ProxyBody: Codable {
public var value: String?
public var type: String?
public var subBody: String?

/// Generate a new persisted realm object on the fly
public func realmObject() -> Body {
Expand All @@ -470,7 +469,6 @@ final class ProxyBody: Codable {
let body = Body()
body.value = truncatedValue
body.type = type
body.subBody = subBody
return body
}
}
Expand All @@ -495,7 +493,6 @@ public final class Body: EmbeddedObject, Codable {
}

@Persisted public var type: String?
@Persisted public var subBody: String?

/// Store compressed data to reduce realm size.
@Persisted var valueData: Data?
Expand Down
Loading