Skip to content

Commit

Permalink
Add at_order property to inbox_state endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Aug 13, 2024
1 parent 4378d1c commit da747f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion synapse/rest/client/account_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,14 @@ async def on_PUT(
if "done" in body:
delta_ms = body["done"].get("at_delta") or 0
done = {"updated_ts": ts, "at_ts": ts + delta_ms}
if "at_order" in body:
done["at_order"] = body["at_order"]
await self.handler.add_account_data_to_room(
user_id, room_id, "com.beeper.inbox.done", done
)
logger.info(f"SetBeeperDone done_delta_ms={delta_ms}")
logger.info(
f"SetBeeperDone done_delta_ms={delta_ms} at_order={body.get('at_order')}"
)

if "marked_unread" in body:
marked_unread = {"unread": body["marked_unread"], "ts": ts}
Expand Down

0 comments on commit da747f4

Please sign in to comment.