diff --git a/src/chats.js b/src/chats.js index fe1e4a93..0ba30bef 100755 --- a/src/chats.js +++ b/src/chats.js @@ -7839,6 +7839,8 @@ define("xabber-chats", function () { arr_text.forEach((item, idx) => { if (item == '\n') arr_text.splice(idx, 1, '
'); + if (item == ' ') + arr_text.splice(idx, 1, ' '); }); text = "

" + arr_text.join("").emojify({tag_name: 'span'}) + "

"; window.document.execCommand('insertHTML', false, text); @@ -7851,7 +7853,7 @@ define("xabber-chats", function () { if (item == '\n') arr_text.splice(idx, 1, '
'); if (item == ' ') - arr_text.splice(idx, 1, ' '); + arr_text.splice(idx, 1, ' '); }); text = "

" + arr_text.join("").emojify({tag_name: 'span'}) + "

"; window.document.execCommand('insertHTML', false, text);