Update quotes to render emoji just like normal messages

This commit is contained in:
Scott Nonnenberg 2018-04-20 15:17:08 -07:00
parent a7d44d3344
commit 21713cbce7
No known key found for this signature in database
GPG key ID: 5F82280C35134661
5 changed files with 52 additions and 8 deletions

View file

@ -206,3 +206,11 @@ parent.textsecure.storage.user.getNumber = () => ourNumber;
// Telling Lodash to relinquish _ for use by underscore
// @ts-ignore
_.noConflict();
parent.emoji.signalReplace = (html: string): string => {
return html.replace(
/🔥/g,
'<img src="node_modules/emoji-datasource-apple/img/apple/64/1f525.png"' +
'class="emoji" data-codepoints="1f525" title=":fire:">'
);
};