summary refs log tree commit diff
path: root/synapse/events/builder.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Faster joins: do not wait for full state when creating events to send (#14403)Mathieu Velten2022-11-171-0/+1
| | | Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
* Don't include redundant prev_state in new events (#13791)Denis2022-09-201-1/+0
|
* Rename the `EventFormatVersions` enum values so that they line up with room ↵reivilibre2022-09-071-2/+2
| | | | version numbers. (#13706)
* Don't pull out the full state when creating an event (#13281)Erik Johnston2022-07-181-1/+7
|
* Use state before join to determine if we `_should_perform_remote_join` (#13270)David Robertson2022-07-151-1/+1
| | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Fix typechecker problems exposed by signedjson 1.1.2 (#12326)David Robertson2022-03-291-1/+1
|
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Get db signatures file to pass mypy (#11312)David Robertson2021-11-111-7/+5
|
* Add type hints to synapse.events.*. (#11066)Patrick Cloke2021-10-131-2/+2
| | | Except `synapse/events/__init__.py`, which will be done in a follow-up.
* Use `RoomVersion` objects (#10934)Richard van der Hoff2021-09-291-20/+0
| | | Various refactors to use `RoomVersion` objects instead of room version identifiers.
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-8/+8
|
* Move methods involving event authentication to EventAuthHandler. (#10268)Patrick Cloke2021-07-011-5/+7
| | | Instead of mixing them with user authentication methods.
* Correct type hints for synapse.event_auth. (#10253)Patrick Cloke2021-06-301-33/+36
|
* Add endpoints for backfilling history (MSC2716) (#9247)Eric Eastwood2021-06-221-2/+15
| | | Work on https://github.com/matrix-org/matrix-doc/pull/2716
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-1/+3
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Fix modifying events in `ThirdPartyRules` modules (#8564)Richard van der Hoff2020-10-161-1/+1
| | | EventBuilder.build wants auth events these days
* Simplify `_locally_reject_invite`Richard van der Hoff2020-10-131-8/+13
| | | | | Update `EventCreationHandler.create_event` to accept an auth_events param, and use it in `_locally_reject_invite` instead of reinventing the wheel.
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-2/+2
|
* Convert additional databases to async/await part 2 (#8200)Patrick Cloke2020-09-011-7/+12
|
* Add type hints to handlers.message and events.builder (#8067)Erik Johnston2020-08-121-27/+31
|
* Convert synapse.api to async/await (#8031)Patrick Cloke2020-08-061-1/+1
|
* Convert a synapse.events to async/await. (#7949)Patrick Cloke2020-07-271-11/+8
|
* Convert state resolution to async/await (#7942)Patrick Cloke2020-07-241-2/+2
|
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-1/+1
| | | ... instead of duplicating `config.signing_key[0]` everywhere
* Add a `make_event_from_dict` method (#6858)Richard van der Hoff2020-02-071-7/+3
| | | | | | | ... and use it in places where it's trivial to do so. This will make it easier to pass room versions into the FrozenEvent constructors.
* Pass room_version into add_hashes_and_signaturesRichard van der Hoff2020-01-301-1/+1
|
* Pass room_version into create_local_event_from_event_dictRichard van der Hoff2020-01-301-22/+18
|
* Store the room version in EventBuilderRichard van der Hoff2020-01-301-5/+7
|
* Replace returnValue with return (#5736)Amber Brown2019-07-231-9/+7
|
* Run Black. (#5482)Amber Brown2019-06-201-20/+17
|
* Fix appservice timestamp massaging (#5233)Tulir Asokan2019-05-241-1/+6
| | | Signed-off-by: Tulir Asokan <tulir@maunium.net>
* Fix error handling for rooms whose versions are unknown. (#5219)Richard van der Hoff2019-05-211-3/+3
| | | | | | | If we remove support for a particular room version, we should behave more gracefully. This should make client requests fail with a 400 rather than a 500, and will ignore individiual PDUs in a federation transaction, rather than the whole transaction.
* Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-011-14/+22
| | | | Collect all the things that make room-versions different to one another into one place, so that it's easier to define new room versions.
* Implement event format v2Erik Johnston2019-01-291-3/+9
|
* Don't set event_id twiceErik Johnston2019-01-291-2/+0
|
* Refactor event building into EventBuilderErik Johnston2019-01-291-65/+219
| | | | | This is so that everything is done in one place, making it easier to change the event format based on room version
* Require event format version to parse or create eventsErik Johnston2019-01-251-1/+50
|
* Revert "Require event format version to parse or create events"Erik Johnston2019-01-251-50/+1
|
* Require event format version to parse or create eventsErik Johnston2019-01-231-1/+50
|
* run isortAmber Brown2018-07-091-3/+2
|
* Remove pointless create() methodRichard van der Hoff2017-10-201-1/+1
| | | | | It just calls the constructor, so we may as well kill it rather than having random codepaths.
* Optimise state resolutionErik Johnston2017-01-171-1/+5
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Fix bug where we changes in outlier in metadata dict propogated to other eventsErik Johnston2015-01-301-2/+3
|
* Remove unused functionsMark Haines2015-01-131-6/+0
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Fix redactions. Fix 'age' keyErik Johnston2014-12-111-3/+10
|
* Try and figure out how and why signatures are being changed.Erik Johnston2014-12-101-3/+4
|
* Add PEP8 newlinesErik Johnston2014-12-091-1/+1
|
* Convert rest and handlers to use new event structureErik Johnston2014-12-041-1/+4
|
* WIP for new way of managing events.Erik Johnston2014-12-031-14/+6
|
* Begin fleshing out a new Event objectErik Johnston2014-12-021-0/+74