m->d: fix image captions spec, fix upload issues

This commit is contained in:
Cadence Ember 2025-02-28 00:39:03 +13:00
commit a8670323a0
10 changed files with 203 additions and 97 deletions

4
src/types.d.ts vendored
View file

@ -167,6 +167,8 @@ export namespace Event {
export type M_Room_Message_File = {
msgtype: "m.file" | "m.image" | "m.video" | "m.audio"
body: string
format?: "org.matrix.custom.html"
formatted_body?: string
filename?: string
url: string
info?: any
@ -184,6 +186,8 @@ export namespace Event {
export type M_Room_Message_Encrypted_File = {
msgtype: "m.file" | "m.image" | "m.video" | "m.audio"
body: string
format?: "org.matrix.custom.html"
formatted_body?: string
filename?: string
file: {
url: string