From 112ad47bc6165f02b93697566ef5befd0888d7df Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 22 Sep 2022 14:16:08 +0530 Subject: [PATCH] guard against type errors when updating contacts UI based on contact data updates --- www/common/messenger-ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/messenger-ui.js b/www/common/messenger-ui.js index a41d98752..ddc812c60 100644 --- a/www/common/messenger-ui.js +++ b/www/common/messenger-ui.js @@ -710,6 +710,7 @@ define([ var curvePublic = info.curvePublic; contactsData[curvePublic] = info; + if (!Array.isArray(types)) { return; } if (types.indexOf('displayName') !== -1) { var name = info.displayName;