diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-15 13:58:28 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-15 13:58:28 +0100 |
commit | 114984a2361ee41005a769f6dc127c470ee08aee (patch) | |
tree | a295be465b71cbc048260b714e9fd042b4accb45 /synapse/storage/__init__.py | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into sql_refactor (diff) | |
download | synapse-114984a2361ee41005a769f6dc127c470ee08aee.tar.xz |
Start chagning the events stream to work with the new DB schema
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index f62cee3c39..46b9dbcbbf 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -104,7 +104,15 @@ class DataStore(RoomMemberStore, RoomStore, yield self._simple_insert("state_events", vals) - # TODO (erikj): We also need to update the current state table? + yield self._simple_insert( + "current_state_events", + { + "event_id": event.event_id, + "room_id": event.room_id, + "type": event.type, + "state_key": event.state_key, + } + ) @defer.inlineCallbacks def get_current_state(self, room_id, event_type=None, state_key=""): |