Skip to content

Commit 1e980e5

Browse files
authored
Merge pull request #123 from mautrix/beeper-mark-read-by
intent/batch send: add option to set com.beeper.mark_read_by
2 parents 627962b + d7475a2 commit 1e980e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mautrix/appservice/api/intent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ async def batch_send(
501501
events: Iterable[BatchSendEvent],
502502
state_events_at_start: Iterable[BatchSendStateEvent] = (),
503503
beeper_new_messages: bool = False,
504+
beeper_mark_read_by: UserID | None = None,
504505
) -> BatchSendResponse:
505506
"""
506507
Send a batch of historical events into a room. See `MSC2716`_ for more info.
@@ -530,6 +531,8 @@ async def batch_send(
530531
query["batch_id"] = batch_id
531532
if beeper_new_messages:
532533
query["com.beeper.new_messages"] = "true"
534+
if beeper_mark_read_by:
535+
query["com.beeper.mark_read_by"] = beeper_mark_read_by
533536
resp = await self.api.request(
534537
Method.POST,
535538
path,

0 commit comments

Comments
 (0)