guard against type errors when updating contacts UI based on contact data updates

This commit is contained in:
ansuz 2022-09-22 14:16:08 +05:30
parent 961e816cef
commit 112ad47bc6

View File

@ -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;