From fd612234bb49ace4784335d6b0aeb420b3af3f4c Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 25 Jun 2020 10:46:59 -0700 Subject: [PATCH] onContactReceived: Tighten up 'self' check --- js/background.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/background.js b/js/background.js index 9cf2de5199bc..c3bd196a8863 100644 --- a/js/background.js +++ b/js/background.js @@ -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) {