mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-17 20:08:31 +00:00
Fix phoneListsEqual to return false when both lists are empty
This commit is contained in:
parent
127e12b384
commit
8a612be0a0
2 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,6 @@ import Foundation
|
||||||
|
|
||||||
public enum AppGitInfo {
|
public enum AppGitInfo {
|
||||||
public static let branch = "master"
|
public static let branch = "master"
|
||||||
public static let commit = "b84bd1faf"
|
public static let commit = "127e12b38"
|
||||||
public static let tag = "6.1.0-alpha"
|
public static let tag = "6.1.0-alpha"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -477,7 +477,11 @@ struct AddParticipantsFragment: View {
|
||||||
_ lhs: [(label: String, phoneNumber: String)],
|
_ lhs: [(label: String, phoneNumber: String)],
|
||||||
_ rhs: [(label: String, phoneNumber: String)]
|
_ rhs: [(label: String, phoneNumber: String)]
|
||||||
) -> Bool {
|
) -> 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
|
zip(lhs, rhs).allSatisfy { l, r in
|
||||||
l.label == r.label && l.phoneNumber == r.phoneNumber
|
l.label == r.label && l.phoneNumber == r.phoneNumber
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue