Fix phoneListsEqual to return false when both lists are empty

This commit is contained in:
Benoit Martins 2026-03-26 08:47:00 +01:00
parent 127e12b384
commit 8a612be0a0
2 changed files with 6 additions and 2 deletions

View file

@ -2,6 +2,6 @@ import Foundation
public enum AppGitInfo {
public static let branch = "master"
public static let commit = "b84bd1faf"
public static let commit = "127e12b38"
public static let tag = "6.1.0-alpha"
}

View file

@ -477,7 +477,11 @@ struct AddParticipantsFragment: View {
_ lhs: [(label: String, phoneNumber: String)],
_ rhs: [(label: String, phoneNumber: String)]
) -> Bool {
lhs.count == rhs.count &&
guard !lhs.isEmpty && !rhs.isEmpty else {
return false
}
return lhs.count == rhs.count &&
zip(lhs, rhs).allSatisfy { l, r in
l.label == r.label && l.phoneNumber == r.phoneNumber
}