Merge branch 'mkirk/fix-local-compare'
This commit is contained in:
commit
03349ca2cd
@ -60,7 +60,16 @@ public class SignalServiceAddress: NSObject {
|
||||
return false
|
||||
}
|
||||
|
||||
return otherAddress.uuid == uuid || otherAddress.phoneNumber == phoneNumber
|
||||
if let otherUuid = otherAddress.uuid, let thisUuid = uuid {
|
||||
return otherUuid == thisUuid
|
||||
}
|
||||
|
||||
if let otherPhone = otherAddress.phoneNumber, let thisPhone = phoneNumber {
|
||||
return otherPhone == thisPhone
|
||||
}
|
||||
|
||||
owsFailDebug("otherAddress had neither uuid nor phone")
|
||||
return false
|
||||
}
|
||||
|
||||
@objc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user