mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 17:31:50 +02:00
fix weird in
op behaviour with null
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
7bf05b0715
commit
aeedf48d84
@ -137,9 +137,9 @@ export default class Reply extends React.Component {
|
|||||||
if (ev.isRedacted()) return;
|
if (ev.isRedacted()) return;
|
||||||
|
|
||||||
const mRelatesTo = ev.getWireContent()['m.relates_to'];
|
const mRelatesTo = ev.getWireContent()['m.relates_to'];
|
||||||
if (mRelatesTo) {
|
if (mRelatesTo && mRelatesTo['m.in_reply_to']) {
|
||||||
const mInReplyTo = mRelatesTo['m.in_reply_to'];
|
const mInReplyTo = mRelatesTo['m.in_reply_to'];
|
||||||
if ('event_id' in mInReplyTo) return mInReplyTo;
|
if (mInReplyTo['event_id']) return mInReplyTo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user