添加活动消息

This commit is contained in:
2020-09-01 16:05:34 +08:00
parent e91b35d1e3
commit a80c2e53b8
2 changed files with 14 additions and 0 deletions

View File

@@ -784,6 +784,10 @@ IMService.prototype.initialWhenOnlineUserChange = function (whenOnlineUserChange
IMService.prototype.listenerNewMessage = function () {
this.im.on(GoEasyIM.EVENT.GROUP_MESSAGE_RECEIVED, (message) => {
console.log(message)
if(message.senderId == 0){
return ;
}
var content = JSON.parse(message.payload.text);
this.addNewMessage(message);
this.whenNewMessage(content);