Add support for more file formats

This commit is contained in:
2025-11-28 17:37:30 +01:00
parent c360432911
commit 62966473f0
4 changed files with 65 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import { APIClient } from "./ApiClient";
import type { MessageType } from "./matrix/MatrixApiEvent";
interface BaseRoomEvent {
time: number;
@@ -8,8 +9,6 @@ interface BaseRoomEvent {
origin_server_ts: number;
}
type MessageType = "m.text" | "m.image" | string;
export interface RoomMessageEvent extends BaseRoomEvent {
type: "RoomMessageEvent";
data: {