|
@@ -11,6 +11,7 @@ export default class MessageBody extends CustomElement {
|
|
return {
|
|
return {
|
|
model: { type: Object },
|
|
model: { type: Object },
|
|
is_me_message: { type: Boolean },
|
|
is_me_message: { type: Boolean },
|
|
|
|
+ show_images: { type: Boolean },
|
|
text: { type: String },
|
|
text: { type: String },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -33,7 +34,7 @@ export default class MessageBody extends CustomElement {
|
|
'onImgClick': this.onImgClick,
|
|
'onImgClick': this.onImgClick,
|
|
'onImgLoad': () => this.onImgLoad(),
|
|
'onImgLoad': () => this.onImgLoad(),
|
|
'render_styling': !this.model.get('is_unstyled') && api.settings.get('allow_message_styling'),
|
|
'render_styling': !this.model.get('is_unstyled') && api.settings.get('allow_message_styling'),
|
|
- 'show_images': api.settings.get('show_images_inline'),
|
|
|
|
|
|
+ 'show_images': this.show_images,
|
|
'show_me_message': true
|
|
'show_me_message': true
|
|
}
|
|
}
|
|
return renderRichText(this.text, offset, mentions, options, callback);
|
|
return renderRichText(this.text, offset, mentions, options, callback);
|