onContactReceived: Tighten up 'self' check
This commit is contained in:
parent
a14936451e
commit
fd612234bb
1 changed files with 3 additions and 2 deletions
|
@ -1979,8 +1979,9 @@
|
|||
const details = ev.contactDetails;
|
||||
|
||||
if (
|
||||
details.number === textsecure.storage.user.getNumber() ||
|
||||
details.uuid === textsecure.storage.user.getUuid()
|
||||
(details.number &&
|
||||
details.number === textsecure.storage.user.getNumber()) ||
|
||||
(details.uuid && details.uuid === textsecure.storage.user.getUuid())
|
||||
) {
|
||||
// special case for syncing details about ourselves
|
||||
if (details.profileKey) {
|
||||
|
|
Loading…
Reference in a new issue