Authored by zzzzzzz

用户消息

... ... @@ -349,8 +349,11 @@ var chat = {
$msg.trigger('send.sendEvent');
});
})
.on('success.sendEvent', function() {
.on('success.sendEvent', function(event, rec) {
clearTimeout($msg.data('timeoutId'));
if (rec.type === 1) {
$msg.find('.msg-content').html(rec.chatMessage.newContent);
}
$msg.removeClass('send-loading send-fail')
.off('sendEvent')
.removeData();
... ... @@ -461,7 +464,7 @@ var chat = {
if (this.unFinshMSGs[uuid]) {
let $msg = this.unFinshMSGs[uuid];
$msg.trigger('success.sendEvent');
$msg.trigger('success.sendEvent', rec);
}
// var uuid = rec.uuid;
... ...