Skip to content

Commit 9ecb1a0

Browse files
authored
Fix sendEventHttpRequest for m.room.redaction events without redacts (#4192)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent ef9490c commit 9ecb1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4876,10 +4876,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
48764876
pathTemplate = "/rooms/$roomId/state/$eventType/$stateKey";
48774877
}
48784878
path = utils.encodeUri(pathTemplate, pathParams);
4879-
} else if (event.isRedaction()) {
4879+
} else if (event.isRedaction() && event.event.redacts) {
48804880
const pathTemplate = `/rooms/$roomId/redact/$redactsEventId/$txnId`;
48814881
path = utils.encodeUri(pathTemplate, {
4882-
$redactsEventId: event.event.redacts!,
4882+
$redactsEventId: event.event.redacts,
48834883
...pathParams,
48844884
});
48854885
} else {

0 commit comments

Comments
 (0)