Skip to content

Commit 2541e9e

Browse files
debdutdebggazzo
andauthored
chore: add incomplete type for rich messages (#231)
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
1 parent 5a69089 commit 2541e9e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/federation-sdk/src/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ export type HomeserverEventSignatures = {
152152
origin_server_ts: number;
153153
};
154154
is_falling_back?: boolean;
155+
}
156+
| {
157+
// SPEC: Though rich replies form a relationship to another event, they do not use rel_type to create this relationship.
158+
// Instead, a subkey named m.in_reply_to is used to describe the reply’s relationship,
159+
160+
// rich {"body":"quote","m.mentions":{},"m.relates_to":{"is_falling_back":false,"m.in_reply_to":{"event_id":"$0vkvf2Ha_FdWe3zVaoDw3X15VCyZIZRYrHQXuoZDURQ"}},"msgtype":"m.text"}
161+
162+
'm.in_reply_to': {
163+
event_id: EventID;
164+
};
165+
is_falling_back?: boolean;
155166
};
156167
'm.new_content'?: {
157168
body: string;

0 commit comments

Comments
 (0)