fix Replies for e2e

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-02-10 12:31:22 +00:00
parent a15d024ad3
commit 18145460b2
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 3 additions and 2 deletions

View File

@ -121,9 +121,10 @@ export default class Quote extends React.Component {
static getInReplyTo(ev) {
if (ev.isRedacted()) return;
const {'m.relates_to': mRelatesTo} = ev.getContent();
const mRelatesTo = ev.getWireContent()['m.relates_to'];
if (mRelatesTo) {
return mRelatesTo['m.in_reply_to'];
const mInReplyTo = mRelatesTo['m.in_reply_to'];
if ('event_id' in mInReplyTo) return mInReplyTo;
}
}