Guard against hopefully impossible situation
This commit is contained in:
@@ -1168,7 +1168,7 @@ async function messageToEvent(message, guild, options = {}, di) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Rich replies
|
// Rich replies
|
||||||
if (repliedToEventRow && !repliedToEventInDifferentRoom) {
|
if (repliedToEventRow && !repliedToEventInDifferentRoom && events[0]) {
|
||||||
Object.assign(events[0], {
|
Object.assign(events[0], {
|
||||||
"m.relates_to": {
|
"m.relates_to": {
|
||||||
"m.in_reply_to": {
|
"m.in_reply_to": {
|
||||||
|
|||||||
Reference in New Issue
Block a user