m->d: Support attachment body data as alt text

This commit is contained in:
Cadence Ember
2024-01-06 19:42:13 +13:00
parent 60cf40680f
commit 84d791cd8a
3 changed files with 48 additions and 6 deletions

2
types.d.ts vendored
View File

@@ -91,6 +91,7 @@ export namespace Event {
export type M_Room_Message_File = {
msgtype: "m.file" | "m.image" | "m.video" | "m.audio"
body: string
filename?: string
url: string
info?: any
"m.relates_to"?: {
@@ -107,6 +108,7 @@ export namespace Event {
export type M_Room_Message_Encrypted_File = {
msgtype: "m.file" | "m.image" | "m.video" | "m.audio"
body: string
filename?: string
file: {
url: string
iv: string