1
0
Fork 0

bug fix where errors weren't being sent

This commit is contained in:
Cadence Ember 2023-08-18 16:58:46 +12:00
parent 6246dc3a7f
commit e08262388b
7 changed files with 24 additions and 24 deletions

View file

@ -134,7 +134,7 @@ async function sendEvent(roomID, type, content, mxid, timestamp) {
*/
async function redactEvent(roomID, eventID, mxid) {
/** @type {Ty.R.EventRedacted} */
const root = await mreq.mreq("PUT", path(`/client/v3/rooms/${roomID}/redact/${eventID}/${makeTxnId.makeTxnId()}`, mxid))
const root = await mreq.mreq("PUT", path(`/client/v3/rooms/${roomID}/redact/${eventID}/${makeTxnId.makeTxnId()}`, mxid), {})
return root.event_id
}