Commit add19259 by zhousil

解决控制台报错

parent 2e86b5d6
Showing with 3 additions and 3 deletions
...@@ -39,11 +39,11 @@ class Chat { ...@@ -39,11 +39,11 @@ class Chat {
this._orgId = option.orgId; this._orgId = option.orgId;
option.serviceType !== undefined && (this.serviceType = option.serviceType); option.serviceType !== undefined && (this.serviceType = option.serviceType);
option.product && (this.product = option.product); option.product && (this.product = option.product);
this.eventHub = option.eventHub; this.eventHub = option.eventHub || null;
if (option.user) { if (option.user) {
this.userMapping[this._sdk().global.uid] = { this.userMapping[this._sdk().global.uid] = {
name: option.user.username, name: option.user.username || "",
avatar: option.user.icon, avatar: option.user.icon || "",
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment