Support unicode surrogate code points

This commit is contained in:
Daniel Huigens
2018-07-30 17:02:13 +02:00
parent a2f53b2ce2
commit 00a2c0c0c2
11 changed files with 59 additions and 67 deletions

View File

@@ -195,7 +195,7 @@ Key.prototype.getKeyIds = function() {
*/
Key.prototype.getUserIds = function() {
return this.users.map(user => {
return user.userId ? util.encode_utf8(user.userId.userid) : null;
return user.userId ? user.userId.userid : null;
}).filter(userid => userid !== null);
};