提交 17cea960 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

contacts of room member list need to be ready asap, because we need nick...

contacts of room member list need to be ready asap, because we need nick name/remark name from contacts
上级 21d31c63
......@@ -64,7 +64,12 @@ class Room extends EventEmitter{
this.rawObj = data
this.obj = this.parse(data)
return this
}).catch(e => {
})
.then(_ => {
return Promise.all(this.obj.memberList.map(c => c.ready()))
.then(_ => this)
})
.catch(e => {
log.error('Room', 'contactGetter(%s) exception: %s', this.id, e.message)
throw e
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册