parent
144cb58a47
commit
ac50713f86
2 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
window.Whisper = window.Whisper || {};
|
window.Whisper = window.Whisper || {};
|
||||||
|
|
||||||
|
const { HTML } = window.Signal;
|
||||||
const { Attachment } = window.Signal.Types;
|
const { Attachment } = window.Signal.Types;
|
||||||
const { loadAttachmentData } = window.Signal.Migrations;
|
const { loadAttachmentData } = window.Signal.Migrations;
|
||||||
|
|
||||||
|
@ -375,8 +376,8 @@
|
||||||
emoji_util.parse(body);
|
emoji_util.parse(body);
|
||||||
|
|
||||||
if (body.length > 0) {
|
if (body.length > 0) {
|
||||||
var escaped = body.html();
|
const escapedBody = body.html();
|
||||||
body.html(escaped.replace(/\n/g, '<br>').replace(URL_REGEX, "$1<a href='$2' target='_blank'>$2</a>"));
|
body.html(HTML.render(escapedBody));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.renderSent();
|
this.renderSent();
|
||||||
|
|
|
@ -158,6 +158,7 @@ window.Signal.Backup = require('./js/modules/backup');
|
||||||
window.Signal.Crypto = require('./js/modules/crypto');
|
window.Signal.Crypto = require('./js/modules/crypto');
|
||||||
window.Signal.Database = require('./js/modules/database');
|
window.Signal.Database = require('./js/modules/database');
|
||||||
window.Signal.Debug = require('./js/modules/debug');
|
window.Signal.Debug = require('./js/modules/debug');
|
||||||
|
window.Signal.HTML = require('./ts/html');
|
||||||
window.Signal.Logs = require('./js/modules/logs');
|
window.Signal.Logs = require('./js/modules/logs');
|
||||||
|
|
||||||
window.Signal.Components = {};
|
window.Signal.Components = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue