Add wrapper for MSC2716 batch send

This commit is contained in:
Tulir Asokan 2021-10-26 17:00:30 +03:00
commit 6b5ccdfd46
4 changed files with 42 additions and 0 deletions

View file

@ -302,3 +302,11 @@ type ReqPutPushRule struct {
Conditions []pushrules.PushCondition `json:"conditions"`
Pattern string `json:"pattern"`
}
type ReqBatchSend struct {
PrevEventID id.EventID `json:"-"`
BatchID id.BatchID `json:"-"`
StateEventsAtStart []*event.Event `json:"state_events_at_start"`
Events []*event.Event `json:"events"`
}