Skip to content

Commit

Permalink
Merge pull request #1244 from Infomaniak/fix-xor-messages
Browse files Browse the repository at this point in the history
fix: Use hashValue instead id for message collection
  • Loading branch information
Ambrdctr committed Jan 25, 2024
2 parents a1cf2c2 + 0f001ba commit 25c8ca6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MailCore/Cache/Actions/ActionsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import SwiftUI

extension [Message]: Identifiable {
public var id: Int {
return collectionId()
var hasher = Hasher()
forEach { hasher.combine($0.hashValue) }
return hasher.finalize()
}
}

Expand Down

0 comments on commit 25c8ca6

Please sign in to comment.