mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #565 from matrix-org/rav/fix_quote_e2e
Fix 'Quote' for e2e messages
This commit is contained in:
commit
9c0ee84fb8
@ -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>`);
|
||||
|
Loading…
Reference in New Issue
Block a user