From 8c18fac5ad1d0ec23fee0d09e1fb790bd7a6eb5f Mon Sep 17 00:00:00 2001 From: Vaishnav Nair Date: Fri, 21 Jan 2022 16:27:59 +0530 Subject: [PATCH 1/3] Include 'prev_content' field in AS events Signed-off-by: Vaishnav Nair --- synapse/storage/databases/main/appservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/appservice.py b/synapse/storage/databases/main/appservice.py index 92c95a41d793..2bb52884315e 100644 --- a/synapse/storage/databases/main/appservice.py +++ b/synapse/storage/databases/main/appservice.py @@ -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 From 90f7d4817f830c6d08cea408d74a0a946faee694 Mon Sep 17 00:00:00 2001 From: Vaishnav Nair Date: Fri, 21 Jan 2022 20:27:45 +0530 Subject: [PATCH 2/3] add changelog file --- changelog.d/11798.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/11798.bugfix diff --git a/changelog.d/11798.bugfix b/changelog.d/11798.bugfix new file mode 100644 index 000000000000..a9bdc2e7c917 --- /dev/null +++ b/changelog.d/11798.bugfix @@ -0,0 +1 @@ +Include `prev_content` field in state events sent to Application Services. Contributed by @totallynotvaishnav. \ No newline at end of file From 787f077bf8731df6f08b011f2acb7b2dede14cbe Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Wed, 26 Jan 2022 14:15:20 +0000 Subject: [PATCH 3/3] Update changelog.d/11798.bugfix --- changelog.d/11798.bugfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/11798.bugfix b/changelog.d/11798.bugfix index a9bdc2e7c917..2651fd11cff0 100644 --- a/changelog.d/11798.bugfix +++ b/changelog.d/11798.bugfix @@ -1 +1 @@ -Include `prev_content` field in state events sent to Application Services. Contributed by @totallynotvaishnav. \ No newline at end of file +Include a `prev_content` field in state events sent to Application Services. Contributed by @totallynotvaishnav. \ No newline at end of file