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

Include prev_content field in AS events #11798

Merged
Show file tree
Hide file tree
Changes from 2 commits
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
1 change: 1 addition & 0 deletions changelog.d/11798.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include `prev_content` field in state events sent to Application Services. Contributed by @totallynotvaishnav.
babolivier marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def get_new_events_for_appservice_txn(txn):
"get_new_events_for_appservice", get_new_events_for_appservice_txn
)

events = await self.get_events_as_list(event_ids)
events = await self.get_events_as_list(event_ids, get_prev_content=True)

return upper_bound, events

Expand Down