large files are now linked instead of uploaded

This commit is contained in:
Cadence Ember
2023-07-13 17:36:20 +12:00
parent 3a59d66626
commit f16900553a
6 changed files with 57 additions and 7 deletions

View File

@@ -110,7 +110,7 @@ async function sendState(roomID, type, stateKey, content, mxid) {
}
async function sendEvent(roomID, type, content, mxid) {
console.log(`[api] event to ${roomID} as ${mxid || "default sim"}`)
console.log(`[api] event ${type} to ${roomID} as ${mxid || "default sim"}`)
/** @type {Ty.R.EventSent} */
const root = await mreq.mreq("PUT", path(`/client/v3/rooms/${roomID}/send/${type}/${makeTxnId.makeTxnId()}`, mxid), content)
return root.event_id