Render emoji in conversation and inbox views.
This commit is contained in:
parent
99d599e008
commit
254131488e
7 changed files with 34 additions and 5 deletions
|
@ -44,6 +44,9 @@
|
|||
number: this.model.getNumber()
|
||||
})
|
||||
);
|
||||
|
||||
twemoji.parse(this.el, { base: '/components/twemoji/', size: 16 });
|
||||
|
||||
if (this.model.get('avatar')) {
|
||||
this.$el.find('.avatar').append(
|
||||
new Whisper.AttachmentView({model: this.model.get('avatar')}).render().el
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
})
|
||||
);
|
||||
|
||||
twemoji.parse(this.el, { base: '/components/twemoji/', size: 16 });
|
||||
|
||||
var content = this.$el.find('.content');
|
||||
content.html(this.autoLink(content.html()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue