From 03988015aaaadde5a848e5ece595f5effd5a9cd1 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 21 Nov 2016 09:19:40 +0000 Subject: [PATCH] Fix 'Quote' for e2e messages Fixes https://github.com/vector-im/vector-web/issues/2612 --- src/components/views/rooms/MessageComposerInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index b33b5098b7..37d937d6f5 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -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(`
${formatted_body}
`);