diff --git a/package.json b/package.json index 4384f053..388e8f5c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "PubNub", "name": "chat-engine", - "version": "0.9.7", + "version": "0.9.10", "description": "ChatEngine", "main": "dist/chat-engine.js", "scripts": { diff --git a/src/components/user.js b/src/components/user.js index 28c27405..31a9ae30 100644 --- a/src/components/user.js +++ b/src/components/user.js @@ -26,12 +26,7 @@ class User extends Emitter { @readonly @type String */ - - if (typeof uuid !== 'string') { - this.chatEngine.throwError(this, 'trigger', 'construct', new Error('UUID must be of type string')); - } - - this.uuid = uuid; + this.uuid = uuid.toString(); /** * Gets the user state. See {@link Me#update} for how to assign state values.