diff options
author | Erik Johnston <erikj@jki.re> | 2017-01-18 10:53:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 10:53:00 +0000 |
commit | 15f012032c74663e85a891b1111693583b06bd48 (patch) | |
tree | 9ed0d532fb6c99b9c73acf45acac5998968a79cc /synapse/events/builder.py | |
parent | Merge pull request #1820 from matrix-org/erikj/push_tools (diff) | |
parent | PEP8 (diff) | |
download | synapse-15f012032c74663e85a891b1111693583b06bd48.tar.xz |
Merge pull request #1818 from matrix-org/erikj/state_auth_splitout_split
Optimise state resolution
Diffstat (limited to 'synapse/events/builder.py')
-rw-r--r-- | synapse/events/builder.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/events/builder.py b/synapse/events/builder.py index 7369d70980..365fd96bd2 100644 --- a/synapse/events/builder.py +++ b/synapse/events/builder.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from . import EventBase, FrozenEvent +from . import EventBase, FrozenEvent, _event_dict_property from synapse.types import EventID @@ -34,6 +34,10 @@ class EventBuilder(EventBase): internal_metadata_dict=internal_metadata_dict, ) + event_id = _event_dict_property("event_id") + state_key = _event_dict_property("state_key") + type = _event_dict_property("type") + def build(self): return FrozenEvent.from_event(self) |