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 Aug 13, 2024
1 parent 865fb5e commit cecd55c
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 cecd55c

Please sign in to comment.