mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 04:12:50 +02:00
Finish room diffing and syncing. All tests pass
This commit is contained in:
parent
f09eeccef3
commit
3fbe7eed6e
13 changed files with 658 additions and 529 deletions
45
types.d.ts
vendored
45
types.d.ts
vendored
|
@ -8,17 +8,42 @@ export type AppServiceRegistrationConfig = {
|
|||
rate_limited: boolean
|
||||
}
|
||||
|
||||
export type M_Room_Message_content = {
|
||||
msgtype: "m.text"
|
||||
body: string
|
||||
formatted_body?: "org.matrix.custom.html"
|
||||
format?: string
|
||||
namespace Event {
|
||||
export type BaseStateEvent = {
|
||||
type: string
|
||||
room_id: string
|
||||
sender: string
|
||||
content: any
|
||||
state_key: string
|
||||
origin_server_ts: number
|
||||
unsigned: any
|
||||
event_id: string
|
||||
user_id: string
|
||||
age: number
|
||||
replaces_state: string
|
||||
prev_content?: any
|
||||
}
|
||||
|
||||
export type M_Room_Message = {
|
||||
msgtype: "m.text"
|
||||
body: string
|
||||
formatted_body?: "org.matrix.custom.html"
|
||||
format?: string
|
||||
}
|
||||
|
||||
export type M_Room_Member = {
|
||||
membership: string
|
||||
display_name?: string
|
||||
avatar_url?: string
|
||||
}
|
||||
}
|
||||
|
||||
export type R_RoomCreated = {
|
||||
room_id: string
|
||||
}
|
||||
namespace R {
|
||||
export type RoomCreated = {
|
||||
room_id: string
|
||||
}
|
||||
|
||||
export type R_FileUploaded = {
|
||||
content_uri: string
|
||||
export type FileUploaded = {
|
||||
content_uri: string
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue