Propagate read receipt events

This commit is contained in:
2025-12-01 10:12:11 +01:00
parent 57797e933a
commit b93100413c
4 changed files with 69 additions and 2 deletions

View File

@@ -45,10 +45,24 @@ export interface RoomRedactionEvent extends BaseRoomEvent {
};
}
export interface ReceiptEventEntry {
event: string;
user: string;
ts?: number;
}
export interface RoomReceiptEvent {
time: number;
type: "ReceiptEvent";
room_id: string;
receipts: ReceiptEventEntry[];
}
export type WsMessage =
| RoomMessageEvent
| RoomReactionEvent
| RoomRedactionEvent;
| RoomRedactionEvent
| RoomReceiptEvent;
export class WsApi {
/**