From 8f69bbf79b1e9ac3cb2dd236331fd4ac4766aee9 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Mon, 10 Jul 2023 10:40:35 -0600 Subject: [PATCH] batch send: add forward_if_no_messages field Signed-off-by: Sumner Evans --- requests.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/requests.go b/requests.go index 1ca87eca..bd3931cc 100644 --- a/requests.go +++ b/requests.go @@ -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 {