mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Added isMe() in adress extension
This commit is contained in:
parent
e7f3e840ce
commit
f86064d9b0
1 changed files with 7 additions and 0 deletions
|
|
@ -52,4 +52,11 @@ extension Address {
|
|||
return FastAddressBook.getContactWith(getCobject)
|
||||
}
|
||||
|
||||
func isMe() -> Bool {
|
||||
guard let accountAddress = Core.get().defaultAccount?.params?.identityAddress else {
|
||||
return false
|
||||
}
|
||||
return weakEqual(address2: accountAddress)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue