Add full support for polls, both m2d and d2m.

Mostly works, but a few edge-cases still need to be worked out.

Co-authored-by: Cadence Ember <cadence@disroot.org>
This commit is contained in:
Ellie Algase
2026-01-26 02:30:05 +13:00
committed by Cadence Ember
co-authored by Cadence Ember
parent afca4de6b6
commit 90606d9176
17 changed files with 501 additions and 191 deletions
+12
View File
@@ -302,6 +302,18 @@ export namespace Event {
export type Outer_Org_Matrix_Msc3381_Poll_Response = Outer<Org_Matrix_Msc3381_Poll_Response> & {type: "org.matrix.msc3381.poll.response"}
export type Org_Matrix_Msc3381_Poll_End = {
"org.matrix.msc3381.poll.end": {},
"org.matrix.msc1767.text": string,
body: string,
"m.relates_to": {
rel_type: string
event_id: string
}
}
export type Outer_Org_Matrix_Msc3381_Poll_End = Outer<Org_Matrix_Msc3381_Poll_End> & {type: "org.matrix.msc3381.poll.end"}
export type M_Room_Member = {
membership: string
displayname?: string