Showing
1 changed file
with
5 additions
and
2 deletions
@@ -349,8 +349,11 @@ var chat = { | @@ -349,8 +349,11 @@ var chat = { | ||
349 | $msg.trigger('send.sendEvent'); | 349 | $msg.trigger('send.sendEvent'); |
350 | }); | 350 | }); |
351 | }) | 351 | }) |
352 | - .on('success.sendEvent', function() { | 352 | + .on('success.sendEvent', function(event, rec) { |
353 | clearTimeout($msg.data('timeoutId')); | 353 | clearTimeout($msg.data('timeoutId')); |
354 | + if (rec.type === 1) { | ||
355 | + $msg.find('.msg-content').html(rec.chatMessage.newContent); | ||
356 | + } | ||
354 | $msg.removeClass('send-loading send-fail') | 357 | $msg.removeClass('send-loading send-fail') |
355 | .off('sendEvent') | 358 | .off('sendEvent') |
356 | .removeData(); | 359 | .removeData(); |
@@ -461,7 +464,7 @@ var chat = { | @@ -461,7 +464,7 @@ var chat = { | ||
461 | if (this.unFinshMSGs[uuid]) { | 464 | if (this.unFinshMSGs[uuid]) { |
462 | let $msg = this.unFinshMSGs[uuid]; | 465 | let $msg = this.unFinshMSGs[uuid]; |
463 | 466 | ||
464 | - $msg.trigger('success.sendEvent'); | 467 | + $msg.trigger('success.sendEvent', rec); |
465 | } | 468 | } |
466 | 469 | ||
467 | // var uuid = rec.uuid; | 470 | // var uuid = rec.uuid; |
-
Please register or login to post a comment