Skip to content

Commit

Permalink
batch send: add forward_if_no_messages field
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <sumner@beeper.com>
  • Loading branch information
sumnerevans committed Jul 10, 2023
1 parent 47de368 commit 8f69bbf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,12 @@ type ReqBatchSend struct {
}

type ReqBeeperBatchSend struct {
Forward bool `json:"forward"`
MarkReadBy id.UserID `json:"mark_read_by,omitempty"`
Events []*event.Event `json:"events"`
// ForwardIfNoMessages should be set to true if the batch should be forward
// backfilled if there are no messages currently in the room.
ForwardIfNoMessages bool `json:"forward_if_no_messages"`
Forward bool `json:"forward"`
MarkReadBy id.UserID `json:"mark_read_by,omitempty"`
Events []*event.Event `json:"events"`
}

type ReqSetReadMarkers struct {
Expand Down

0 comments on commit 8f69bbf

Please sign in to comment.