Fix 'Quote' for e2e messages

Fixes https://github.com/vector-im/vector-web/issues/2612
This commit is contained in:
Richard van der Hoff 2016-11-21 09:19:40 +00:00
parent 2e691240ae
commit 03988015aa

View file

@ -272,7 +272,7 @@ export default class MessageComposerInput extends React.Component {
break;
case 'quote': {
let {event: {content: {body, formatted_body}}} = payload.event || {};
let {body, formatted_body} = payload.event.getContent();
formatted_body = formatted_body || escape(body);
if (formatted_body) {
let content = RichText.HTMLtoContentState(`<blockquote>${formatted_body}</blockquote>`);