summary refs log tree commit diff
path: root/synapse/storage/databases/main
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-12-10 14:13:23 +0000
committerGitHub <noreply@github.com>2021-12-10 14:13:23 +0000
commit86e7a6d16ee9ffe8f5e783ec8150405b13f878fa (patch)
tree2888d19b732406e7836d100d5198faf0ae710adc /synapse/storage/databases/main
parentEnsure emails are canonicalized before fetching associated user. (#11547) (diff)
downloadsynapse-86e7a6d16ee9ffe8f5e783ec8150405b13f878fa.tar.xz
Stop populating `state_events.prev_state` (#11558)
this field is never read, so we may as well stop populating it.
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r--synapse/storage/databases/main/events.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py
index f1f4ce5e07..eed453d836 100644
--- a/synapse/storage/databases/main/events.py
+++ b/synapse/storage/databases/main/events.py
@@ -1410,10 +1410,6 @@ class PersistEventsStore:
                 "state_key": event.state_key,
             }
 
-            # TODO: How does this work with backfilling?
-            if hasattr(event, "replaces_state"):
-                vals["prev_state"] = event.replaces_state
-
             state_values.append(vals)
 
         self.db_pool.simple_insert_many_txn(