summary refs log tree commit diff
path: root/synapse/events (follow)
Commit message (Expand)AuthorAgeFilesLines
* Use TYPE_CHECKING instead of magic MYPY variable. (#8770)Patrick Cloke2020-11-171-3/+2
* Block clients from sending server ACLs that lock the local server out. (#8708)Erik Johnston2020-11-031-9/+18
* Use `%r` rather than `%s` for stringifying events (#8679)Richard van der Hoff2020-10-291-2/+2
* Fix typos and spelling errors. (#8639)Patrick Cloke2020-10-232-2/+2
* Fix modifying events in `ThirdPartyRules` modules (#8564)Richard van der Hoff2020-10-161-1/+1
* Merge pull request #8535 from matrix-org/rav/third_party_events_updatesRichard van der Hoff2020-10-152-6/+19
|\
| * guard against accidental modificationRichard van der Hoff2020-10-132-3/+10
| * Allow ThirdPartyRules modules to replace event contentRichard van der Hoff2020-10-131-3/+9
* | Merge pull request #8537 from matrix-org/rav/simplify_locally_reject_inviteRichard van der Hoff2020-10-151-8/+13
|\ \
| * | Simplify `_locally_reject_invite`Richard van der Hoff2020-10-131-8/+13
| |/
* / Make sure a retention policy is a state event (#8527)Brendan Abolivier2020-10-141-0/+3
|/
* Combine `SpamCheckerApi` with the more generic `ModuleApi`. (#8464)Richard van der Hoff2020-10-072-4/+4
* Additional tests for third-party event rules (#8468)Richard van der Hoff2020-10-061-5/+7
* Fix third-party event modules for `check_visibility_can_be_modified` checkRichard van der Hoff2020-10-051-1/+3
* Allow ThirdPartyEventRules modules to manipulate public room state (#8292)Andrew Morgan2020-10-051-6/+45
* Remove stream ordering from Metadata dict (#8452)Richard van der Hoff2020-10-052-2/+9
* Various clean ups to room stream tokens. (#8423)Erik Johnston2020-09-291-3/+3
* Stop sub-classing object (#8249)Patrick Cloke2020-09-046-7/+7
* Add StreamStore to mypy (#8232)Erik Johnston2020-09-021-2/+2
* Convert additional databases to async/await part 2 (#8200)Patrick Cloke2020-09-011-7/+12
* Allow capping a room's retention policy (#8104)Brendan Abolivier2020-08-241-56/+3
* Allow denying or shadow banning registrations via the spam checker (#8034)Patrick Cloke2020-08-201-2/+33
* Be more tolerant of membership events in unknown rooms (#8110)Richard van der Hoff2020-08-201-0/+2
* 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
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-1/+1
* Convert a synapse.events to async/await. (#7949)Patrick Cloke2020-07-274-68/+67
* Convert state resolution to async/await (#7942)Patrick Cloke2020-07-241-2/+2
* Fix deprecation warning: import ABC from collections.abc (#7892)Karthikeyan Singaravelan2020-07-201-3/+3
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-1/+1
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-162-10/+6
* Replace iteritems/itervalues/iterkeys with native versions. (#7692)Patrick Cloke2020-06-152-6/+2
* Strictly enforce canonicaljson requirements in a new room version (#7381)Patrick Cloke2020-05-142-1/+41
* Extend spam checker to allow for multiple modules (#7435)Andrew Morgan2020-05-081-39/+39
* Fix bug in EventContext.deserialize. (#7393)Erik Johnston2020-05-051-2/+5
* Remove special auth and redaction rules for aliases events in experimental ro...Patrick Cloke2020-03-091-7/+5
* Store room_versions in EventBase objects (#6875)Richard van der Hoff2020-03-052-24/+43
* Merge pull request #6872 from matrix-org/rav/dictpropertyRichard van der Hoff2020-02-181-81/+118
|\
| * Rewrite _EventInternalMetadata to back it with a _dictRichard van der Hoff2020-02-141-16/+39
| * Replace _event_dict_property with DictPropertyRichard van der Hoff2020-02-141-65/+79
* | Add type hints to the spam check module (#6915)Patrick Cloke2020-02-141-18/+26
|/
* Filter the results of user directory searching via the spam checker (#6888)Patrick Cloke2020-02-141-0/+27
* Add a `make_event_from_dict` method (#6858)Richard van der Hoff2020-02-072-9/+17
* remove unused room_version_to_event_format (#6857)Richard van der Hoff2020-02-071-23/+1
* Third party event rules Update (#6781)PeerD2020-02-061-3/+4
* Add typing to SyncHandler (#6821)Erik Johnston2020-02-031-7/+11
* 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
* Type defintions for use in refactoring for redaction changes (#6803)Richard van der Hoff2020-01-301-2/+3
* Set the PL for aliases events to 0.Richard van der Hoff2020-01-291-1/+1
* Factor out a `copy_power_levels_contents` methodRichard van der Hoff2020-01-291-1/+36
* Make 'event.redacts' never raise. (#6771)Erik Johnston2020-01-231-4/+24
* Add StateMap type alias (#6715)Erik Johnston2020-01-161-6/+5
* Change EventContext to use the Storage class (#6564)Erik Johnston2019-12-202-16/+22
* Merge branch 'develop' into babolivier/message_retentionBrendan Abolivier2019-11-261-30/+129
|\
| * Fix bug which caused rejected events to be stored with the wrong room state ...Richard van der Hoff2019-11-061-2/+23
| * Add some checks that we aren't using state from rejected events (#6330)Richard van der Hoff2019-11-051-5/+44
| * Improve documentation for EventContext fields (#6319)Richard van der Hoff2019-11-051-26/+65
* | Implement per-room message retention policiesBrendan Abolivier2019-11-041-3/+97
|/
* Factor out an _AsyncEventContextImpl (#6298)Richard van der Hoff2019-11-011-65/+42
* Expose some homeserver functionality to spam checkers (#6259)Travis Ralston2019-10-311-1/+13
* Convert EventContext to attrs (#6218)Richard van der Hoff2019-10-281-61/+39
* Merge pull request #5805 from matrix-org/erikj/validate_stateErik Johnston2019-08-011-2/+9
|\
| * Validate well-known state events are state events.Erik Johnston2019-07-311-2/+9
* | Fix spelling.Erik Johnston2019-08-011-1/+3
|/
* Don't allow clients to send tombstones that reference the same roomErik Johnston2019-07-311-0/+7
* Replace returnValue with return (#5736)Amber Brown2019-07-234-30/+26
* Remove the ability to query relations when the original event was redacted. (...Andrew Morgan2019-07-182-4/+23
* Add origin_server_ts and sender fields to m.replace (#5613)Andrew Morgan2019-07-051-1/+5
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
* Run Black. (#5482)Amber Brown2019-06-207-106/+98
* Merge pull request #5480 from matrix-org/erikj/extremities_dummy_eventsErik Johnston2019-06-191-0/+12
|\
| * Run as background process and fix commentsErik Johnston2019-06-191-1/+1
| * Add experimental option to reduce extremities.Erik Johnston2019-06-181-0/+12
* | Make check_threepid_can_be_invited asyncBrendan Abolivier2019-06-171-0/+1
* | Add third party rules hook for 3PID invitesBrendan Abolivier2019-06-171-1/+31
* | Add third party rules hook into create roomErik Johnston2019-06-171-3/+24
|/
* Add plugin APIs for implementations of custom event rules.Brendan Abolivier2019-06-141-0/+62
* Fix appservice timestamp massaging (#5233)Tulir Asokan2019-05-241-1/+6
* Don't bundle events in /sync or /eventsErik Johnston2019-05-211-2/+3
* Fix error handling for rooms whose versions are unknown. (#5219)Richard van der Hoff2019-05-212-5/+9
* Add a test room version which updates event ID format (#5210)Richard van der Hoff2019-05-201-1/+22
* Rename relation types to match MSCErik Johnston2019-05-201-3/+3
* Fixup bsaed on review commentsErik Johnston2019-05-171-3/+1
* Add basic editing supportErik Johnston2019-05-161-4/+26
* Add aggregations APIErik Johnston2019-05-161-3/+31
* Allow client event serialization to be asyncErik Johnston2019-05-141-0/+44
* Do checks on aliases for incoming m.room.aliases events (#5128)Brendan Abolivier2019-05-082-4/+19
* Remove periods from copyright headers (#5046)Andrew Morgan2019-04-111-1/+1
* Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-013-25/+29
* Make `prev_state` field optionalErik Johnston2019-03-081-1/+0
* Implement soft failErik Johnston2019-03-061-0/+14
* Enable room version v3Erik Johnston2019-01-291-0/+2
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/redactions...Erik Johnston2019-01-291-2/+3
|\
| * Merge pull request #4514 from matrix-org/erikj/remove_event_idErik Johnston2019-01-291-2/+3
| |\
| | * Don't assert an event must have an event IDErik Johnston2019-01-291-2/+3
* | | Fixup commentErik Johnston2019-01-291-2/+2
* | | kill vdh test some moreErik Johnston2019-01-291-2/+1
* | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/redactions...Erik Johnston2019-01-293-79/+320
|\| |
| * | Implement event format v2Erik Johnston2019-01-293-19/+106
| |/
| * Don't set event_id twiceErik Johnston2019-01-291-2/+0
| * Refactor event building into EventBuilderErik Johnston2019-01-291-65/+219
* | Drop vdh supportErik Johnston2019-01-291-2/+0
* | Add docstringErik Johnston2019-01-291-0/+12
* | Implement rechecking of redactionsErik Johnston2019-01-291-0/+3
|/
* Merge pull request #4494 from matrix-org/erikj/fixup_event_validatorErik Johnston2019-01-291-23/+37
|\
| * Remove duplicate checksErik Johnston2019-01-291-14/+0
| * Fix up error messagesErik Johnston2019-01-291-2/+2
| * Fold validate into validate_newErik Johnston2019-01-291-16/+11
| * Split up event validation between event and builderErik Johnston2019-01-281-20/+53
* | Refactor event signing to work on dictsErik Johnston2019-01-281-12/+35
|/
* Require event format version to parse or create eventsErik Johnston2019-01-252-2/+73
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/msc_1813Erik Johnston2019-01-251-2/+7
|\
| * Merge pull request #4405 from matrix-org/erikj/fixup_rejecting_invitesErik Johnston2019-01-241-2/+7
| |\
| | * Use term 'out of band membership' insteadErik Johnston2019-01-241-4/+5
| | * Clarify the invite flowsErik Johnston2019-01-231-2/+6
* | | Review commentsErik Johnston2019-01-241-1/+2
* | | Implement MSC 1813 - Add room version to make APIsErik Johnston2019-01-231-1/+16
|/ /
* | isortErik Johnston2019-01-231-3/+1
* | Add support for persisting event format versionsErik Johnston2019-01-231-0/+5
|/
* Add helpers for getting prev and auth events (#4139)Erik Johnston2018-11-061-0/+18
* Disable frozen dicts by default (#3987)Amber Brown2018-10-021-3/+10
* Fix handling of redacted events from federationErik Johnston2018-09-131-0/+5
* Handle delta_ids being None in _update_context_for_auth_eventsRichard van der Hoff2018-07-231-1/+2
* CommentsErik Johnston2018-07-231-2/+3
* Only get cached state from context in persist_eventErik Johnston2018-07-231-0/+13
* Fix missing attributes on workers.Erik Johnston2018-07-231-4/+6
* Fix EventContext when using workersErik Johnston2018-07-231-7/+7
* Update docstrings to make senseErik Johnston2018-07-231-5/+8
* Add support for updating stateErik Johnston2018-07-231-0/+19
* Make EventContext lazy load stateErik Johnston2018-07-231-41/+112
* pep8Erik Johnston2018-07-231-1/+1
* Refcator EventContext to accept state during initErik Johnston2018-07-231-21/+27
* Make the rest of the .iterwhatever go away (#3562)Amber Brown2018-07-211-1/+3
* run isortAmber Brown2018-07-095-15/+14
* Consistently use six's iteritems and wrap lazy keys/values in list() if they'...Amber Brown2018-05-311-1/+1
* Replace some more comparisons with sixAdrian Tschira2018-05-192-3/+7
* add comment explaining attributeerrorAdrian Tschira2018-04-301-0/+3
* Make event properties raise AttributeError insteadAdrian Tschira2018-04-151-3/+12
* Remove context.push_actionsErik Johnston2018-02-151-4/+0
* Don't serialize current state over replicationErik Johnston2018-02-151-6/+35
* Add replication http endpoint for event sendingErik Johnston2018-02-071-0/+72
* Store state groups separately from events (#2784)Erik Johnston2018-02-061-1/+3
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
* Remove pointless create() methodRichard van der Hoff2017-10-201-1/+1
* Spam checking: add the invitee to user_may_inviteDavid Baker2017-10-051-2/+2
* spam check room publishingDavid Baker2017-10-041-0/+18
* Add room creation checks to spam checkerDavid Baker2017-10-041-0/+32
* s/roomid/room_id/David Baker2017-10-031-2/+2
* pass room id tooDavid Baker2017-10-031-2/+2
* Actually write warpper functionDavid Baker2017-10-031-0/+16
* Don't test is spam_checker not NoneDavid Baker2017-09-271-1/+7
* Remove unintentional debuggingDavid Baker2017-09-271-1/+0
* pep8David Baker2017-09-271-0/+1
* Make the spam checker a moduleDavid Baker2017-09-261-17/+20
* fix thinko'd docstringMatthew Hodgson2017-09-221-1/+1
* PoC for filtering spammy events (#2456)Richard van der Hoff2017-09-191-0/+38
* Add more granular event send metricsErik Johnston2017-05-021-0/+3
* Comment and remove spurious loggingErik Johnston2017-04-271-0/+3
* Fix testsErik Johnston2017-04-261-3/+3
* Fix invite state to always include all eventsErik Johnston2017-04-261-1/+19
* Refactoring and cleanupsRichard van der Hoff2017-03-171-0/+26
* Optimise state resolutionErik Johnston2017-01-172-4/+10
* gah, fix mangled merge of 0.18.7 into developMatthew Hodgson2017-01-071-1/+1
* Only send events that originate on this server.Mark Haines2017-01-051-0/+9
* Review commentsKegan Dougal2016-11-221-11/+9
* Also check for dict since sometimes they aren't frozenKegan Dougal2016-11-221-1/+1
* Glue only_event_fields into the sync rest servletKegan Dougal2016-11-221-1/+1
* More testsKegan Dougal2016-11-221-3/+4
* Start adding some testsKegan Dougal2016-11-211-1/+3
* Move event_fields filtering to serialize_eventKegan Dougal2016-11-211-4/+97
* Add commentsErik Johnston2016-09-051-0/+5
* Move to storing state_groups_state as deltasErik Johnston2016-09-011-0/+16
* Correctly handle the difference between prev and current stateErik Johnston2016-08-311-2/+3
* Make None optionalErik Johnston2016-08-261-1/+1
* Replace context.current_state with context.current_state_idsErik Johnston2016-08-251-11/+2
* Pull out event ids rather than full events for stateErik Johnston2016-08-251-0/+8
* Include prev_content in redacted state eventsErik Johnston2016-08-111-0/+2
* Remove the is_new_state argument to persist event.Mark Haines2016-03-311-0/+3
* Use a stream id generator to assign state group idsMark Haines2016-03-301-1/+1
* Intern all the thingsErik Johnston2016-03-231-9/+2
* Intern sender, event_id and room_id in eventsErik Johnston2016-03-231-0/+5
* Intern type and state_key on eventsErik Johnston2016-03-231-0/+7
* Don't assume existence of event_id in __str__Erik Johnston2016-03-181-1/+3
* Atomically persit push actions when we persist the eventErik Johnston2016-02-091-0/+1
* Make Event objects behave more like dictsErik Johnston2016-01-181-0/+9
* copyrightsMatthew Hodgson2016-01-075-5/+5
* Only add the user_id if the sender is presentMark Haines2015-12-011-1/+3
* Copy rather than move the fields to shuffle between a v1 and a v2 event.Mark Haines2015-11-301-9/+5
* Flatten the /sync response to remove the event_mapRichard van der Hoff2015-11-191-2/+1
* Update the other place check_joined_room is calledMark Haines2015-10-301-1/+2
* Surely we don't need to preserve 'events_default' twicePaul "LeoNerd" Evans2015-10-161-1/+0
* Bundle in some room state in the unsigned bit of the invite when sending to i...Erik Johnston2015-09-101-1/+4
* Fix bug where we didn't correctly serialize the redacted_because key over fed...Erik Johnston2015-08-211-1/+4
* Rename key and values for m.room.history_visibility. Support 'invited' valueErik Johnston2015-07-061-1/+1
* Add m.room.history_visibility to list of auth eventsErik Johnston2015-07-031-0/+2
* Don't copy twiceErik Johnston2015-05-291-1/+1
* Add config option to turn off freezing events. Use new encode_json api and uj...Erik Johnston2015-05-291-1/+10
* Store the rejected reason in (Frozen)Event structsPaul "LeoNerd" Evans2015-03-251-2/+4
* Remove concept of context.auth_events, instead use context.current_stateErik Johnston2015-03-161-2/+1
* pyflakesErik Johnston2015-02-111-1/+1
* Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder...Erik Johnston2015-02-111-4/+0
* Rearrange persist_event so that do all the queries that need to be done befor...Erik Johnston2015-02-041-1/+1
* Actually, the old prune_event function was non-deterministic, so no point kee...Erik Johnston2015-02-031-79/+0
* Keep around the old (buggy) version of the prune_event function so that we ca...Erik Johnston2015-02-031-0/+79
* Merge pull request #43 from matrix-org/rejectionsErik Johnston2015-01-303-6/+12
|\
| * Merge branch 'develop' of github.com:matrix-org/synapse into rejectionsErik Johnston2015-01-301-6/+6
| |\
| * | Fix bug where we changes in outlier in metadata dict propogated to other eventsErik Johnston2015-01-303-4/+8
| * | Initial implementation of auth conflict resolutionErik Johnston2015-01-291-2/+4
* | | Merge pull request #41 from matrix-org/client_v2_syncMark Haines2015-01-301-33/+52
|\ \ \
| * | | Include transaction ids in unsigned section of events in the sync results for...Mark Haines2015-01-291-5/+6
| * | | Add support for formatting events in the way a v2 client expectsMark Haines2015-01-291-39/+52
| * | | Start implementing incremental initial syncMark Haines2015-01-271-0/+1
| * | | Start implementing the non-incremental sync portion of the v2 /sync APIMark Haines2015-01-261-1/+5
| | |/ | |/|
* | | Merge branch 'develop' of github.com:matrix-org/synapse into rejections_storageErik Johnston2015-01-301-6/+6
|\| | | |/ |/|
| * Pass the current time to serialize event, rather than passing anMark Haines2015-01-261-6/+6
* | Add support for storing rejected events in EventContext and data storesErik Johnston2015-01-221-0/+1
|/
* Remove unused functionsMark Haines2015-01-131-6/+0
* Merge branch 'hotfixes-v0.6.1b' of github.com:matrix-org/synapse into developErik Johnston2015-01-131-1/+1
|\
| * Insert 'age' into top level when returning events to clientsErik Johnston2015-01-131-1/+1
* | Return the raw federation event rather than adding extra keys for federation ...Kegan Dougal2015-01-081-9/+16
* | Add 'raw' query parameter to expose the event graph and signatures to savvy c...Kegan Dougal2015-01-081-8/+9
|/
* Remove unused importErik Johnston2015-01-071-2/+0
* Optimize FrozenEvent creationErik Johnston2015-01-061-7/+13
* Update copyright noticesMark Haines2015-01-065-5/+5
* Remove unneeded federation keys from eventsMark Haines2014-12-191-0/+3
* clean up coding style a bitMark Haines2014-12-161-11/+11
* Persist internal_metadataErik Johnston2014-12-161-2/+3
* Fix pyflakesErik Johnston2014-12-151-2/+0
* Use frozenutilsErik Johnston2014-12-151-32/+4
* Remove unused functionsErik Johnston2014-12-151-42/+0
* Finish up upgrade scriptErik Johnston2014-12-151-1/+1
* Fix bug where we ignored event_edge_hashes tableErik Johnston2014-12-151-0/+1
* Validate message, topic and name event contentsErik Johnston2014-12-121-0/+21
* Fix prev_contentErik Johnston2014-12-111-0/+8
* Fix redactions. Fix 'age' keyErik Johnston2014-12-113-3/+32
* Add some basic event validationErik Johnston2014-12-101-8/+21
* Actually fix bug when uploading state with empty state_keyErik Johnston2014-12-101-0/+1
* Fix bug when uploading state with empty state_keyErik Johnston2014-12-101-2/+8
* Fix AttributeErrorErik Johnston2014-12-101-0/+3
* Add __str__ to FrozenEventErik Johnston2014-12-101-0/+5
* Try and figure out how and why signatures are being changed.Erik Johnston2014-12-102-11/+14
* Add PEP8 newlinesErik Johnston2014-12-093-3/+3
* More bug fixesErik Johnston2014-12-081-8/+1
* Various typos and bug fixes.Erik Johnston2014-12-082-1/+4
* Start making more things use EventContext rather than event.*Erik Johnston2014-12-052-2/+49
* Convert rest and handlers to use new event structureErik Johnston2014-12-042-5/+8
* Begin converting things to use the new Event structureErik Johnston2014-12-041-0/+3
* WIP for new way of managing events.Erik Johnston2014-12-035-78/+286