mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 11:31:31 +03:00
fix Replies for e2e
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a15d024ad3
commit
18145460b2
1 changed files with 3 additions and 2 deletions
|
@ -121,9 +121,10 @@ export default class Quote extends React.Component {
|
||||||
static getInReplyTo(ev) {
|
static getInReplyTo(ev) {
|
||||||
if (ev.isRedacted()) return;
|
if (ev.isRedacted()) return;
|
||||||
|
|
||||||
const {'m.relates_to': mRelatesTo} = ev.getContent();
|
const mRelatesTo = ev.getWireContent()['m.relates_to'];
|
||||||
if (mRelatesTo) {
|
if (mRelatesTo) {
|
||||||
return mRelatesTo['m.in_reply_to'];
|
const mInReplyTo = mRelatesTo['m.in_reply_to'];
|
||||||
|
if ('event_id' in mInReplyTo) return mInReplyTo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue