Skip to content

Commit

Permalink
Look for done.at_order in the correct place in inbox_state endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Sep 7, 2024
1 parent 3f896ec commit 8f2ce7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/rest/client/account_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ 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"]
if "at_order" in body["done"]:
done["at_order"] = body["done"]["at_order"]
await self.handler.add_account_data_to_room(
user_id, room_id, "com.beeper.inbox.done", done
)
Expand Down

0 comments on commit 8f2ce7e

Please sign in to comment.