function onMessageSending() {
        setTimeout(function () {
            // update scroll position when vue has updated ui
            updateScroll();

            var $latestMsg = $('#mobile-body-content .msg-row:last-child .msg');

            // add target="_blank" for links
            $latestMsg.find('a').attr('target', '_blank');

            // update scroll position when images are loaded
            onImageLoad($latestMsg).then(updateScroll);
        });
    }
UI updating when new message is sending