添加了提示

This commit is contained in:
2020-09-01 15:55:32 +08:00
parent ccca4992ab
commit f4ba8edec2
2 changed files with 21 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ function IMService() {
//群列表发生改变
this.onGroupListChange = function (groups) {};
//结束直播
this.jieshuzhibo = function(messages){}
this.whenNewMessage = function () {
@@ -785,6 +787,11 @@ 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){
this.jieshuzhibo(JSON.parse(message.payload.text));
return;
}
var content = JSON.parse(message.payload.text);
this.addNewMessage(message);
this.whenNewMessage(content);