mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
guard against type errors when updating contacts UI based on contact data updates
This commit is contained in:
parent
961e816cef
commit
112ad47bc6
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user