This commit is contained in:
luyuan 2020-08-15 13:42:51 +08:00
parent 7d13fc8e85
commit be2780fbc4
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -800,7 +800,6 @@ IMService.prototype.listenerGroupPresence = function () {
this.im.on(GoEasyIM.EVENT.GROUP_PRESENCE, (event) => {
//更新在线用户数
this.room.onlineUsers.count = event.groupOnlineCount;
if (event.action == 'join' || event.action == 'online') {
let userData = JSON.parse(event.userData);
//添加新用户
@ -887,6 +886,7 @@ IMService.prototype.subscribeRoomMessage = function (room, user) {
this.subscribePresence(this.room.id);
//订阅聊天室消息
// this.subscribeRoomMessage(this.room.id);
this.initialOnlineUsers(this.room.id)
this.im.subscribeGroup([this.room.id])
.then(result => {
console.log('消息订阅成功')