onContactReceived: Tighten up 'self' check

This commit is contained in:
Scott Nonnenberg 2020-06-25 10:46:59 -07:00
parent a14936451e
commit fd612234bb

View file

@ -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) {