mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-09 20:03:04 +02:00
large files are now linked instead of uploaded
This commit is contained in:
parent
3a59d66626
commit
f16900553a
6 changed files with 57 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue