We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 627962b + d7475a2 commit 1e980e5Copy full SHA for 1e980e5
mautrix/appservice/api/intent.py
@@ -501,6 +501,7 @@ async def batch_send(
501
events: Iterable[BatchSendEvent],
502
state_events_at_start: Iterable[BatchSendStateEvent] = (),
503
beeper_new_messages: bool = False,
504
+ beeper_mark_read_by: UserID | None = None,
505
) -> BatchSendResponse:
506
"""
507
Send a batch of historical events into a room. See `MSC2716`_ for more info.
@@ -530,6 +531,8 @@ async def batch_send(
530
531
query["batch_id"] = batch_id
532
if beeper_new_messages:
533
query["com.beeper.new_messages"] = "true"
534
+ if beeper_mark_read_by:
535
+ query["com.beeper.mark_read_by"] = beeper_mark_read_by
536
resp = await self.api.request(
537
Method.POST,
538
path,
0 commit comments