diff --git a/app/js/message_composer.js b/app/js/message_composer.js index c29b116c..b4392031 100644 --- a/app/js/message_composer.js +++ b/app/js/message_composer.js @@ -1334,7 +1334,9 @@ MessageComposer.prototype.onCommandSelected = function (command, isTab) { MessageComposer.prototype.onChange = function (e) { if (this.richTextareaEl) { delete this.keyupStarted; - this.textareaEl.val(getRichValue(this.richTextareaEl[0])).trigger('change'); + var richValue = getRichValue(this.richTextareaEl[0]); + richValue = richValue.replace(/\u00A0/g, ' '); + this.textareaEl.val(richValue).trigger('change'); } this.updateInlinePlaceholder(); } diff --git a/app/js/services.js b/app/js/services.js index 2fc1d32a..72fb4751 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -4277,11 +4277,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } if (matches = url.match(/^msg_url\?url=([^&]+)(?:&text=(.*))?$/)) { - PeersSelectService.selectPeer().then(function (toPeerString) { - var url = decodeURIComponent(matches[1]); - var text = matches[2] ? decodeURIComponent(matches[2]) : ''; - shareUrl(url, text); - }); + var url = decodeURIComponent(matches[1]); + var text = matches[2] ? decodeURIComponent(matches[2]) : ''; + shareUrl(url, text); return true; } diff --git a/app/partials/desktop/im.html b/app/partials/desktop/im.html index 78910572..19032d60 100644 --- a/app/partials/desktop/im.html +++ b/app/partials/desktop/im.html @@ -90,8 +90,8 @@
-