提交 6fce1766 编写于 作者: J jaslin

get room owner on room-join room-topic event

上级 9a52e5ed
......@@ -39,6 +39,7 @@ export type RoomRawObj = {
EncryChatRoomId: string
NickName: string
OwnerUin: number
ChatRoomOwner: string
MemberList: RoomRawMember[]
}
......@@ -337,9 +338,13 @@ export class Room extends EventEmitter implements Sayable {
memberList = memberList.filter(m => m.get('uin') === ownerUin)
if (memberList.length > 0) {
return memberList[0]
} else {
return null
}
if(this.rawObj.ChatRoomOwner){
return Contact.load(this.rawObj.ChatRoomOwner)
}
return null
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册