File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,7 @@ async def batch_send(
496496 batch_id : BatchID | None = None ,
497497 events : Iterable [BatchSendEvent ],
498498 state_events_at_start : Iterable [BatchSendStateEvent ] = (),
499+ beeper_new_messages : bool = False ,
499500 ) -> BatchSendResponse :
500501 """
501502 Send a batch of historical events into a room. See `MSC2716`_ for more info.
@@ -513,6 +514,8 @@ async def batch_send(
513514 state_events_at_start: The state events to send at the start of the batch.
514515 These will be sent as outlier events, which means they won't be
515516 a part of the actual room state.
517+ beeper_new_messages: Custom flag to tell the server that the messages can be sent to
518+ the end of the room as normal messages instead of history.
516519
517520 Returns:
518521 All the event IDs generated, plus a batch ID that can be passed back to this method.
@@ -521,6 +524,8 @@ async def batch_send(
521524 query : JSON = {"prev_event_id" : prev_event_id }
522525 if batch_id :
523526 query ["batch_id" ] = batch_id
527+ if beeper_new_messages :
528+ query ["com.beeper.new_messages" ] = "true"
524529 resp = await self .api .request (
525530 Method .POST ,
526531 path ,
You can’t perform that action at this time.
0 commit comments