diff --git a/static/js/message.js b/static/js/message.js index f6bb966..137457a 100644 --- a/static/js/message.js +++ b/static/js/message.js @@ -116,7 +116,13 @@ let Messages = class { } static pushImage(sender, src, msg_id) { - Messages.pushMessage(sender,[$('', {src: src, width: 300})],msg_id); + var sp = $('', {class: 'text-grey bd-light'}).append(' Loading Image... '); + var img = $('', {src: src, width: 300}); + img.on('load', function() { + sp.empty(); + sp.append(img); + }); + Messages.pushMessage(sender,[sp],msg_id); } static addReaction(sender, emoji, msg_id) {