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

@ -405,7 +405,9 @@
this.quoteView = new Whisper.ReactWrapperView({
className: 'quote-wrapper',
Component: window.Signal.Components.Quote,
props,
props: Object.assign({}, props, {
text: props.text ? window.emoji.signalReplace(props.text) : null,
}),
});
this.$('.inner-bubble').prepend(this.quoteView.el);
},