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

Commit

Permalink
Include prev_content field in AS events (#11798)
Browse files Browse the repository at this point in the history
* Include 'prev_content' field in AS events

Signed-off-by: Vaishnav Nair <nairvaishnav007@icloud.com>
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
  • Loading branch information
totallynotvaishnav and babolivier authored Jan 26, 2022
1 parent 2d3bd9a commit cef0d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11798.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include a `prev_content` field in state events sent to Application Services. Contributed by @totallynotvaishnav.
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

0 comments on commit cef0d5d

Please sign in to comment.