Guard against hopefully impossible situation
This commit is contained in:
parent
9b01e522cc
commit
70b18c8833
1 changed files with 1 additions and 1 deletions
|
|
@ -1168,7 +1168,7 @@ async function messageToEvent(message, guild, options = {}, di) {
|
|||
}
|
||||
|
||||
// Rich replies
|
||||
if (repliedToEventRow && !repliedToEventInDifferentRoom) {
|
||||
if (repliedToEventRow && !repliedToEventInDifferentRoom && events[0]) {
|
||||
Object.assign(events[0], {
|
||||
"m.relates_to": {
|
||||
"m.in_reply_to": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue