Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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>` | ||||
* | Ensure we use a copy of the event content dict before modifying it in ↵ | Andrew Morgan | 2021-03-17 | 1 | -2/+12 |
| | | | | | | | | | serialize_event (#9585) This bug was discovered by DINUM. We were modifying `serialized_event["content"]`, which - if you've got `USE_FROZEN_DICTS` turned on or are [using a third party rules module](https://github.com/matrix-org/synapse/blob/17cd48fe5171d50da4cb59db647b993168e7dfab/synapse/events/third_party_rules.py#L73-L76) - will raise a 500 if you try to a edit a reply to a message. `serialized_event["content"]` could be set to the edit event's content, instead of a copy of it, which is bad as we attempt to modify it. Instead, we also end up modifying the original event's content. DINUM uses a third party rules module, which meant the event's content got frozen and thus an exception was raised. To be clear, the problem is not that the event's content was frozen. In fact doing so helped us uncover the fact we weren't copying event content correctly. | ||||
* | Prep work for removing `outlier` from `internal_metadata` (#9411) | Richard van der Hoff | 2021-03-17 | 1 | -0/+2 |
| | | | | | | | | | | | | * Populate `internal_metadata.outlier` based on `events` table Rather than relying on `outlier` being in the `internal_metadata` column, populate it based on the `events.outlier` column. * Move `outlier` out of InternalMetadata._dict Ultimately, this will allow us to stop writing it to the database. For now, we have to grandfather it back in so as to maintain compatibility with older versions of Synapse. | ||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -1/+1 |
| | | | | | | | - 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 | ||||
* | Implement MSC2176: Updated redaction rules (#8984) | Patrick Cloke | 2021-01-05 | 1 | -2/+14 |
| | | | | An experimental room version ("org.matrix.msc2176") contains the new redaction rules for testing. | ||||
* | Fix typos and spelling errors. (#8639) | Patrick Cloke | 2020-10-23 | 1 | -1/+1 |
| | |||||
* | Remove stream ordering from Metadata dict (#8452) | Richard van der Hoff | 2020-10-05 | 1 | -0/+5 |
| | | | | | | | | There's no need for it to be in the dict as well as the events table. Instead, we store it in a separate attribute in the EventInternalMetadata object, and populate that on load. This means that we can rely on it being correctly populated for any event which has been persited to the database. | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Convert a synapse.events to async/await. (#7949) | Patrick Cloke | 2020-07-27 | 1 | -8/+7 |
| | |||||
* | Fix deprecation warning: import ABC from collections.abc (#7892) | Karthikeyan Singaravelan | 2020-07-20 | 1 | -3/+3 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -3/+1 |
| | |||||
* | Strictly enforce canonicaljson requirements in a new room version (#7381) | Patrick Cloke | 2020-05-14 | 1 | -1/+34 |
| | |||||
* | Remove special auth and redaction rules for aliases events in experimental ↵ | Patrick Cloke | 2020-03-09 | 1 | -7/+5 |
| | | | | room ver. (#7037) | ||||
* | Store room_versions in EventBase objects (#6875) | Richard van der Hoff | 2020-03-05 | 1 | -10/+4 |
| | | | | | | | This is a bit fiddly because it all has to be done on one fell swoop: * Wherever we create a new event, pass in the room version (and check it matches the format version) * When we prune an event, use the room version of the unpruned event to create the pruned version. * When we pass an event over the replication protocol, pass the room version over alongside it, and use it when deserialising the event again. | ||||
* | Set the PL for aliases events to 0. | Richard van der Hoff | 2020-01-29 | 1 | -1/+1 |
| | |||||
* | Factor out a `copy_power_levels_contents` method | Richard van der Hoff | 2020-01-29 | 1 | -1/+36 |
| | | | | I'm going to need another copy (hah!) of this. | ||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -2/+2 |
| | |||||
* | Remove the ability to query relations when the original event was redacted. ↵ | Andrew Morgan | 2019-07-18 | 1 | -4/+12 |
| | | | | | | | (#5629) Fixes #5594 Forbid viewing relations on an event once it has been redacted. | ||||
* | Add origin_server_ts and sender fields to m.replace (#5613) | Andrew Morgan | 2019-07-05 | 1 | -1/+5 |
| | | | | | Riot team would like some extra fields as part of m.replace, so here you go. Fixes: #5598 | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -26/+32 |
| | |||||
* | Don't bundle events in /sync or /events | Erik Johnston | 2019-05-21 | 1 | -2/+3 |
| | | | | | As we'll send down the annotations too anyway, so this just ends up confusing clients. | ||||
* | Rename relation types to match MSC | Erik Johnston | 2019-05-20 | 1 | -3/+3 |
| | |||||
* | Fixup bsaed on review comments | Erik Johnston | 2019-05-17 | 1 | -3/+1 |
| | |||||
* | Add basic editing support | Erik Johnston | 2019-05-16 | 1 | -4/+26 |
| | |||||
* | Add aggregations API | Erik Johnston | 2019-05-16 | 1 | -3/+31 |
| | |||||
* | Allow client event serialization to be async | Erik Johnston | 2019-05-14 | 1 | -0/+44 |
| | |||||
* | Implement event format v2 | Erik Johnston | 2019-01-29 | 1 | -0/+3 |
| | |||||
* | Refactor event signing to work on dicts | Erik Johnston | 2019-01-28 | 1 | -12/+35 |
| | | | | | | This is in preparation for making EventBuilder format agnostic, which means event signing should be done against the event dict rather than the EventBuilder object. | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -4/+5 |
| | |||||
* | Replace some more comparisons with six | Adrian Tschira | 2018-05-19 | 1 | -1/+3 |
| | | | | | | plus a bonus b"" string I missed last time Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Comment and remove spurious logging | Erik Johnston | 2017-04-27 | 1 | -0/+3 |
| | |||||
* | Fix tests | Erik Johnston | 2017-04-26 | 1 | -3/+3 |
| | |||||
* | Fix invite state to always include all events | Erik Johnston | 2017-04-26 | 1 | -1/+19 |
| | |||||
* | Review comments | Kegan Dougal | 2016-11-22 | 1 | -11/+9 |
| | |||||
* | Also check for dict since sometimes they aren't frozen | Kegan Dougal | 2016-11-22 | 1 | -1/+1 |
| | |||||
* | Glue only_event_fields into the sync rest servlet | Kegan Dougal | 2016-11-22 | 1 | -1/+1 |
| | |||||
* | More tests | Kegan Dougal | 2016-11-22 | 1 | -3/+4 |
| | |||||
* | Start adding some tests | Kegan Dougal | 2016-11-21 | 1 | -1/+3 |
| | |||||
* | Move event_fields filtering to serialize_event | Kegan Dougal | 2016-11-21 | 1 | -4/+97 |
| | | | | Also make it an inclusive not exclusive filter, as the spec demands. | ||||
* | Include prev_content in redacted state events | Erik Johnston | 2016-08-11 | 1 | -0/+2 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Only add the user_id if the sender is present | Mark Haines | 2015-12-01 | 1 | -1/+3 |
| | |||||
* | Copy rather than move the fields to shuffle between a v1 and a v2 event. | Mark Haines | 2015-11-30 | 1 | -9/+5 |
| | | | | | | | | | | This should make all v1 APIs compatible with v2 clients. While still allowing v1 clients to access the fields. This makes the documentation easier since we can just document the v2 format and explain that some of the fields, in some of the APIs are duplicated for backwards compatibility, rather than having to document two separate event formats. | ||||
* | Flatten the /sync response to remove the event_map | Richard van der Hoff | 2015-11-19 | 1 | -2/+1 |
| | |||||
* | Update the other place check_joined_room is called | Mark Haines | 2015-10-30 | 1 | -1/+2 |
| | |||||
* | Surely we don't need to preserve 'events_default' twice | Paul "LeoNerd" Evans | 2015-10-16 | 1 | -1/+0 |
| | |||||
* | Bundle in some room state in the unsigned bit of the invite when sending to ↵ | Erik Johnston | 2015-09-10 | 1 | -1/+4 |
| | | | | invited servers | ||||
* | Rename key and values for m.room.history_visibility. Support 'invited' value | Erik Johnston | 2015-07-06 | 1 | -1/+1 |
| | |||||
* | Add m.room.history_visibility to list of auth events | Erik Johnston | 2015-07-03 | 1 | -0/+2 |
| | |||||
* | Merge pull request #43 from matrix-org/rejections | Erik Johnston | 2015-01-30 | 1 | -3/+8 |
|\ | | | | | Rejections | ||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into rejections | Erik Johnston | 2015-01-30 | 1 | -6/+6 |
| |\ | | | | | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py synapse/storage/schema/delta/v12.sql | ||||
| * | | Fix bug where we changes in outlier in metadata dict propogated to other events | Erik Johnston | 2015-01-30 | 1 | -1/+4 |
| | | | |||||
| * | | Initial implementation of auth conflict resolution | Erik Johnston | 2015-01-29 | 1 | -2/+4 |
| | | | |||||
* | | | Include transaction ids in unsigned section of events in the sync results ↵ | Mark Haines | 2015-01-29 | 1 | -5/+6 |
| | | | | | | | | | | | | for the clients that made those requests | ||||
* | | | Add support for formatting events in the way a v2 client expects | Mark Haines | 2015-01-29 | 1 | -39/+52 |
| | | | |||||
* | | | Start implementing incremental initial sync | Mark Haines | 2015-01-27 | 1 | -0/+1 |
| | | | |||||
* | | | Start implementing the non-incremental sync portion of the v2 /sync API | Mark Haines | 2015-01-26 | 1 | -1/+5 |
| |/ |/| | |||||
* | | Pass the current time to serialize event, rather than passing an | Mark Haines | 2015-01-26 | 1 | -6/+6 |
|/ | | | | | | HS and getting a clock from it and calling time_msec on the clock. Remove the serialize_event method from the HS since it is no longer needed. | ||||
* | Merge branch 'hotfixes-v0.6.1b' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-01-13 | 1 | -1/+1 |
|\ | |||||
| * | Insert 'age' into top level when returning events to clients | Erik Johnston | 2015-01-13 | 1 | -1/+1 |
| | | |||||
* | | Return the raw federation event rather than adding extra keys for federation ↵ | Kegan Dougal | 2015-01-08 | 1 | -9/+16 |
| | | | | | | | | data. | ||||
* | | Add 'raw' query parameter to expose the event graph and signatures to savvy ↵ | Kegan Dougal | 2015-01-08 | 1 | -8/+9 |
|/ | | | | clients. | ||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Remove unneeded federation keys from events | Mark Haines | 2014-12-19 | 1 | -0/+3 |
| | |||||
* | Fix bug where we ignored event_edge_hashes table | Erik Johnston | 2014-12-15 | 1 | -0/+1 |
| | |||||
* | Fix prev_content | Erik Johnston | 2014-12-11 | 1 | -0/+8 |
| | |||||
* | Fix redactions. Fix 'age' key | Erik Johnston | 2014-12-11 | 1 | -0/+21 |
| | |||||
* | Add PEP8 newlines | Erik Johnston | 2014-12-09 | 1 | -1/+1 |
| | |||||
* | Various typos and bug fixes. | Erik Johnston | 2014-12-08 | 1 | -0/+2 |
| | |||||
* | Start making more things use EventContext rather than event.* | Erik Johnston | 2014-12-05 | 1 | -0/+16 |
| | |||||
* | WIP for new way of managing events. | Erik Johnston | 2014-12-03 | 1 | -0/+82 |