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; const details = ev.contactDetails;
if ( if (
details.number === textsecure.storage.user.getNumber() || (details.number &&
details.uuid === textsecure.storage.user.getUuid() details.number === textsecure.storage.user.getNumber()) ||
(details.uuid && details.uuid === textsecure.storage.user.getUuid())
) { ) {
// special case for syncing details about ourselves // special case for syncing details about ourselves
if (details.profileKey) { if (details.profileKey) {