diff options
author | Erik Johnston <erik@matrix.org> | 2019-05-20 14:06:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-20 14:06:40 +0100 |
commit | 57ba3451b6c22633c4aaf1bec19e91b66add65cd (patch) | |
tree | 1ffb24e6c61372dc6013fa7828ed8bc665ac2f99 /synapse/replication/tcp | |
parent | Limit UserIds to a length that fits in a state key (#5198) (diff) | |
parent | Newsfile (diff) | |
download | synapse-57ba3451b6c22633c4aaf1bec19e91b66add65cd.tar.xz |
Merge pull request #5209 from matrix-org/erikj/reactions_base
Land basic reaction and edit support.
Diffstat (limited to 'synapse/replication/tcp')
-rw-r--r-- | synapse/replication/tcp/streams/_base.py | 1 | ||||
-rw-r--r-- | synapse/replication/tcp/streams/events.py | 11 |
2 files changed, 7 insertions, 5 deletions
diff --git a/synapse/replication/tcp/streams/_base.py b/synapse/replication/tcp/streams/_base.py index 8971a6a22e..b6ce7a7bee 100644 --- a/synapse/replication/tcp/streams/_base.py +++ b/synapse/replication/tcp/streams/_base.py @@ -32,6 +32,7 @@ BackfillStreamRow = namedtuple("BackfillStreamRow", ( "type", # str "state_key", # str, optional "redacts", # str, optional + "relates_to", # str, optional )) PresenceStreamRow = namedtuple("PresenceStreamRow", ( "user_id", # str diff --git a/synapse/replication/tcp/streams/events.py b/synapse/replication/tcp/streams/events.py index e0f6e29248..f1290d022a 100644 --- a/synapse/replication/tcp/streams/events.py +++ b/synapse/replication/tcp/streams/events.py @@ -80,11 +80,12 @@ class BaseEventsStreamRow(object): class EventsStreamEventRow(BaseEventsStreamRow): TypeId = "ev" - event_id = attr.ib() # str - room_id = attr.ib() # str - type = attr.ib() # str - state_key = attr.ib() # str, optional - redacts = attr.ib() # str, optional + event_id = attr.ib() # str + room_id = attr.ib() # str + type = attr.ib() # str + state_key = attr.ib() # str, optional + redacts = attr.ib() # str, optional + relates_to = attr.ib() # str, optional @attr.s(slots=True, frozen=True) |