Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Rename /batch_send query parameter from ?prev_event to more obvious usage with ?prev_event_id (MSC2716) #10839

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint
  • Loading branch information
MadLittleMods committed Sep 17, 2021
commit 8300964ed48667af2f96963210d730cd47cf1f57
4 changes: 3 additions & 1 deletion synapse/rest/client/room_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ async def on_POST(
assert_params_in_dict(body, ["state_events_at_start", "events"])

assert request.args is not None
prev_event_ids_from_query = parse_strings_from_args(request.args, "prev_event_id")
prev_event_ids_from_query = parse_strings_from_args(
request.args, "prev_event_id"
)
chunk_id_from_query = parse_string(request, "chunk_id")

if prev_event_ids_from_query is None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parse_strings_from_args has a required param to make this easy for you, but 🤷

Expand Down