Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #93 from matrix-org/application-services-exclusive | Kegsay | 2015-03-02 | 2 | -7/+18 |
|\ | | | | | Application services exclusive flag support | ||||
| * | Implement exclusive namespace checks. | Kegan Dougal | 2015-02-27 | 2 | -7/+18 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into batched_get_pdu | Erik Johnston | 2015-03-02 | 3 | -12/+27 |
|\ \ | |||||
| * | | Finish impl to get new events for AS. ASes should now be able to poll /events | Kegan Dougal | 2015-02-26 | 1 | -1/+3 |
| | | | |||||
| * | | Add stub functions and work out execution flow to implement AS event stream ↵ | Kegan Dougal | 2015-02-25 | 2 | -12/+25 |
| |/ | | | | | | | polling. | ||||
| * | %s for strings otherwise you end up sending 'u"foo"' | David Baker | 2015-02-24 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into batched_get_pdu | Erik Johnston | 2015-02-23 | 1 | -1/+1 |
|\| | |||||
| * | Add missing comma so that it generates a dict and not a set | Erik Johnston | 2015-02-20 | 1 | -1/+1 |
| | | |||||
* | | Implement and use new batched get missing pdu | Erik Johnston | 2015-02-23 | 1 | -0/+23 |
| | | |||||
* | | Initial stab at implementing a batched get_missing_pdus request | Erik Johnston | 2015-02-19 | 1 | -4/+5 |
|/ | |||||
* | Merge branch 'consumeErrors' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-02-17 | 2 | -5/+5 |
|\ | |||||
| * | We do want to consumeError | Erik Johnston | 2015-02-17 | 1 | -1/+1 |
| | | |||||
| * | Use consumeErrors=True on all DeferredLists. | Erik Johnston | 2015-02-17 | 1 | -4/+4 |
| | | | | | | | | | | | | This is so that the DeferredLists actually consume the error instead of propogating down the non-existent errback chain. This should reduce the number of unhandled errors we are seeing. | ||||
* | | Change some debug logging to info | Erik Johnston | 2015-02-17 | 1 | -2/+4 |
| | | |||||
* | | Merge branch 'hotfixes-v0.7.0f' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-02-16 | 1 | -1/+1 |
|\| | |||||
| * | resolve_events expect lists, not dicts | Erik Johnston | 2015-02-15 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-02-13 | 1 | -1/+1 |
|\| | |||||
| * | Fix wrong variable name | Erik Johnston | 2015-02-13 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #50 from matrix-org/application-services | Mark Haines | 2015-02-13 | 5 | -47/+393 |
|\ \ | |/ |/| | Application Services | ||||
| * | PEP8-ify | Kegan Dougal | 2015-02-11 | 1 | -3/+0 |
| | | |||||
| * | Notify ASes for events sent by other users in a room which an AS user is a ↵ | Kegan Dougal | 2015-02-11 | 1 | -5/+16 |
| | | | | | | | | part of. | ||||
| * | Merge branch 'develop' into application-services | Kegan Dougal | 2015-02-11 | 5 | -25/+50 |
| |\ | |||||
| * \ | Merge branch 'develop' into application-services | Kegan Dougal | 2015-02-09 | 3 | -62/+105 |
| |\ \ | |||||
| * | | | Fix bugs so lazy room joining works as intended. | Kegan Dougal | 2015-02-09 | 2 | -9/+20 |
| | | | | |||||
| * | | | Register a user account for the AS when the AS registers. Add 'sender' ↵ | Kegan Dougal | 2015-02-09 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | column to AS table. | ||||
| * | | | Add errcodes for appservice registrations. | Kegan Dougal | 2015-02-06 | 1 | -4/+7 |
| | | | | |||||
| * | | | Pyflakes: unused variable. | Kegan Dougal | 2015-02-06 | 1 | -1/+1 |
| | | | | |||||
| * | | | Grant ASes the ability to delete aliases in their own namespace. | Kegan Dougal | 2015-02-06 | 1 | -5/+23 |
| | | | | |||||
| * | | | Grant ASes the ability to create alias in their own namespace. | Kegan Dougal | 2015-02-06 | 1 | -12/+31 |
| | | | | | | | | | | | | | | | | | | | | | | | | Add a new errcode type M_EXCLUSIVE when users try to create aliases inside AS namespaces, and when ASes try to create aliases outside their own namespace. | ||||
| * | | | Add m.login.application_service registration procedure. | Kegan Dougal | 2015-02-05 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | This allows known application services to register any user ID under their own user namespace(s). | ||||
| * | | | Dependency inject ApplicationServiceApi when creating ↵ | Kegan Dougal | 2015-02-05 | 2 | -4/+6 |
| | | | | | | | | | | | | | | | | ApplicationServicesHandler. | ||||
| * | | | Prevent user IDs in AS namespaces being created/deleted by humans. | Kegan Dougal | 2015-02-05 | 1 | -0/+16 |
| | | | | |||||
| * | | | Prevent aliases in AS namespaces being created/deleted by users. Check with ↵ | Kegan Dougal | 2015-02-05 | 1 | -9/+33 |
| | | | | | | | | | | | | | | | | ASes when queried for room aliases via federation. | ||||
| * | | | Merge branch 'develop' into application-services | Kegan Dougal | 2015-02-05 | 4 | -90/+143 |
| |\ \ \ | |||||
| * | | | | Fix user query checks. HS>AS pushing now works. | Kegan Dougal | 2015-02-05 | 1 | -13/+31 |
| | | | | | |||||
| * | | | | Glue AS work to general event notifications. Add more exception handling ↵ | Kegan Dougal | 2015-02-05 | 1 | -14/+25 |
| | | | | | | | | | | | | | | | | | | | | when poking ASes. | ||||
| * | | | | Add unknown room alias check. Call it from directory_handler.get_association | Kegan Dougal | 2015-02-05 | 2 | -43/+61 |
| | | | | | |||||
| * | | | | Add unknown user ID check. Use store.get_aliases_for_room(room_id) when ↵ | Kegan Dougal | 2015-02-05 | 1 | -5/+19 |
| | | | | | | | | | | | | | | | | | | | | searching for services by alias. | ||||
| * | | | | Add hs_token column and generate a different token f.e application service. | Kegan Dougal | 2015-02-05 | 1 | -3/+6 |
| | | | | | |||||
| * | | | | Impl push_bulk function | Kegan Dougal | 2015-02-05 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Modify API for SimpleHttpClient.get_json and update usages. | Kegan Dougal | 2015-02-04 | 2 | -37/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, this would only return the HTTP body as JSON, and discard other response information (e.g. the HTTP response code). This has now been changed to throw a CodeMessageException on a non-2xx response, with the response code and body, which can then be parsed as JSON. Affected modules include: - Registration/Login (when using an email for IS auth) | ||||
| * | | | | Add query_user/alias APIs. | Kegan Dougal | 2015-02-04 | 1 | -10/+16 |
| | | | | | |||||
| * | | | | Begin to add unit tests for appservice glue and regex testing. | Kegan Dougal | 2015-02-04 | 1 | -2/+6 |
| | | | | | |||||
| * | | | | Add stub ApplicationServiceApi and glue it with the handler. | Kegan Dougal | 2015-02-04 | 1 | -3/+15 |
| | | | | | |||||
| * | | | | Add appservice package and move ApplicationService into it. | Kegan Dougal | 2015-02-03 | 1 | -1/+3 |
| | | | | | |||||
| * | | | | Implement restricted namespace checks. Begin fleshing out the main hook for ↵ | Kegan Dougal | 2015-02-03 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | notifying application services. | ||||
| * | | | | Add namespace constants. Add restrict_to option to limit namespace checks. | Kegan Dougal | 2015-02-03 | 1 | -10/+15 |
| | | | | | |||||
| * | | | | Implement regex checks for app services. | Kegan Dougal | 2015-02-03 | 1 | -2/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Expose handler.get_services_for_event which manages the checks for all services. | ||||
| * | | | | Implement txns for AS (un)registration. | Kegan Dougal | 2015-02-02 | 1 | -1/+2 |
| | | | | | |||||
| * | | | | Merge branch 'develop' into application-services | Kegan Dougal | 2015-02-02 | 7 | -154/+848 |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/__init__.py synapse/storage/__init__.py | ||||
| * | | | | | Add basic application_services SQL, and hook up parts of the appservice ↵ | Kegan Dougal | 2015-01-28 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | store to read from it. | ||||
| * | | | | | Log when ASes are registered/unregistered. | Kegan Dougal | 2015-01-27 | 1 | -0/+2 |
| | | | | | | |||||
| * | | | | | Use ApplicationService when registering. | Kegan Dougal | 2015-01-27 | 1 | -8/+5 |
| | | | | | | |||||
| * | | | | | Add stub methods, TODOs and docstrings for application services. | Kegan Dougal | 2015-01-27 | 1 | -3/+22 |
| | | | | | | |||||
| * | | | | | Add appservice handler and store. Glue together rest > handler > store. | Kegan Dougal | 2015-01-27 | 2 | -0/+51 |
| | | | | | | |||||
* | | | | | | pyflakes | Erik Johnston | 2015-02-13 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | When we see a difference in current state, actually use state conflict ↵ | Erik Johnston | 2015-02-13 | 1 | -0/+34 |
| | | | | | | | | | | | | | | | | | | | | | | | | resolution algorithm | ||||
* | | | | | | Reindent code to be less human-readable to keep pep8 from complaining | Paul "LeoNerd" Evans | 2015-02-12 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Appease pyflakes | Paul "LeoNerd" Evans | 2015-02-12 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Can now remove the FIXME too | Paul "LeoNerd" Evans | 2015-02-12 | 1 | -10/+3 |
| | | | | | | |||||
* | | | | | | Only attempt to fetch presence state of JOINed members in room initialSync ↵ | Paul "LeoNerd" Evans | 2015-02-12 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | (SYN-202) | ||||
* | | | | | | Remove more debug logging | Erik Johnston | 2015-02-11 | 1 | -2/+0 |
| | | | | | | |||||
* | | | | | | Remove debug logging | Erik Johnston | 2015-02-11 | 2 | -12/+0 |
| | | | | | | |||||
* | | | | | | Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵ | Erik Johnston | 2015-02-11 | 2 | -2/+17 |
| |_|_|_|/ |/| | | | | | | | | | | | | | | JSONEncoder that understands FrozenDict | ||||
* | | | | | Fix code-style | Mark Haines | 2015-02-10 | 2 | -5/+5 |
| | | | | | |||||
* | | | | | Code-style fixes | Mark Haines | 2015-02-10 | 2 | -6/+11 |
| | | | | | |||||
* | | | | | Merge branch 'release-v0.6.2' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-02-10 | 1 | -1/+6 |
|\ \ \ \ \ | |||||
| * | | | | | SYN-258: get_recent_events_for_room only accepts stream tokens, convert the ↵ | Mark Haines | 2015-02-06 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | topological token to a stream token before passing it to get_recent_events_for_room | ||||
| * | | | | | Explicitly list the RejectedReasons that we can prove | Erik Johnston | 2015-02-06 | 1 | -1/+6 |
| | | | | | | |||||
* | | | | | | During room intial sync, only calculate current state once. | Erik Johnston | 2015-02-09 | 2 | -13/+28 |
| |_|_|_|/ |/| | | | | |||||
* | | | | | don't give up if we can't create default avatars during tests | Matthew Hodgson | 2015-02-07 | 1 | -9/+12 |
| | | | | | |||||
* | | | | | ...and here's the actual impl. git fail. | Matthew Hodgson | 2015-02-07 | 1 | -0/+14 |
| | | | | | |||||
* | | | | | SYN-258: get_recent_events_for_room only accepts stream tokens, convert the ↵ | Mark Haines | 2015-02-06 | 1 | -1/+3 |
|/ / / / | | | | | | | | | | | | | topological token to a stream token before passing it to get_recent_events_for_room | ||||
* | | | | Don't query auth if the only difference is events that were rejected due to ↵ | Erik Johnston | 2015-02-06 | 1 | -56/+72 |
| | | | | | | | | | | | | | | | | auth. | ||||
* | | | | Make seen_ids a set | Erik Johnston | 2015-02-06 | 1 | -1/+3 |
| | | | | |||||
* | | | | Handle the fact the list.remove raises if element doesn't exist | Erik Johnston | 2015-02-06 | 1 | -4/+10 |
| |_|/ |/| | | |||||
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-02-05 | 1 | -5/+12 |
|\ \ \ | | | | | | | | | | | | | federation_client_retries | ||||
| * | | | SYN-202: Log as WARN the 404 'Presence information not visible' errors ↵ | Erik Johnston | 2015-02-05 | 1 | -5/+12 |
| | |/ | |/| | | | | | | | instead of as ERROR since they were spamming the logs | ||||
* | | | Pass through list of room hosts from room alias query to federation so that ↵ | Erik Johnston | 2015-02-05 | 2 | -14/+18 |
| | | | | | | | | | | | | it can retry against different room hosts | ||||
* | | | Merge branch 'signature_failures' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-02-04 | 1 | -1/+3 |
|\ \ \ | | | | | | | | | | | | | federation_client_retries | ||||
| * | | | Change context.auth_events to what the auth_events would be bases on ↵ | Erik Johnston | 2015-02-04 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | context.current_state, rather than based on the auth_events from the event. | ||||
* | | | | Apply sanity to the transport client interface. Convert 'make_join' and ↵ | Erik Johnston | 2015-02-04 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | 'send_join' to accept iterables of destinations | ||||
* | | | | When returning lists of servers from alias lookups, put the current server ↵ | Erik Johnston | 2015-02-04 | 1 | -1/+10 |
|/ / / | | | | | | | | | | first in the list | ||||
* | | | Rearrange persist_event so that do all the queries that need to be done ↵ | Erik Johnston | 2015-02-04 | 1 | -0/+2 |
| | | | | | | | | | | | | before returning early if we have already persisted that event. | ||||
* | | | Neaten the handling of state and auth_chain up a bit | Erik Johnston | 2015-02-03 | 1 | -27/+30 |
| | | | |||||
* | | | Don't completely die if get auth_chain or querying auth_chain requests fail | Erik Johnston | 2015-02-03 | 1 | -63/+72 |
| | | | |||||
* | | | Set combinations is | and not + | Erik Johnston | 2015-02-03 | 1 | -2/+2 |
| | | | |||||
* | | | Spelling | Erik Johnston | 2015-02-03 | 1 | -1/+1 |
| | | | |||||
* | | | Give exception better message | Erik Johnston | 2015-02-03 | 1 | -1/+1 |
| | | | |||||
* | | | Add FIXME note. | Erik Johnston | 2015-02-03 | 1 | -0/+2 |
| | | | |||||
* | | | Return rejected events if asked for it over federation. | Erik Johnston | 2015-02-03 | 1 | -0/+1 |
| | | | |||||
* | | | Try to ensure we don't persist an event we have already persisted. In ↵ | Erik Johnston | 2015-02-03 | 1 | -14/+28 |
|/ / | | | | | | | persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering. | ||||
* | | Resign events when we return them via /query_auth/ | Erik Johnston | 2015-01-30 | 1 | -0/+9 |
| | | |||||
* | | Return empty list rather than None when there are no emphemeral events for a ↵ | Mark Haines | 2015-01-30 | 1 | -1/+1 |
| | | | | | | | | room | ||||
* | | Fix bug where accepting invite over federation didn't work. Add logging. | Erik Johnston | 2015-01-30 | 1 | -8/+49 |
| | | |||||
* | | Merge pull request #43 from matrix-org/rejections | Erik Johnston | 2015-01-30 | 1 | -119/+310 |
|\ \ | | | | | | | Rejections | ||||
| * | | Only auth_events with event if event in event.auth_events | Erik Johnston | 2015-01-30 | 1 | -1/+3 |
| | | | |||||
| * | | Fix bug where we superfluously asked for current state. Change API of ↵ | Erik Johnston | 2015-01-30 | 1 | -33/+18 |
| | | | | | | | | | | | | /query_auth/ so that we don't duplicate events in the response. | ||||
| * | | Merge branch 'develop' of github.com:matrix-org/synapse into rejections | Erik Johnston | 2015-01-30 | 5 | -43/+75 |
| |\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py synapse/storage/schema/delta/v12.sql | ||||
| * | | | Update the current state of an event if we update auth events. | Erik Johnston | 2015-01-30 | 1 | -1/+3 |
| | | | | |||||
| * | | | Fix regression where we no longer correctly handled the case of gaps in our ↵ | Erik Johnston | 2015-01-30 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | event graph | ||||
| * | | | Initial implementation of auth conflict resolution | Erik Johnston | 2015-01-29 | 1 | -75/+132 |
| | | | | |||||
| * | | | Start implementing auth conflict res | Erik Johnston | 2015-01-28 | 1 | -35/+176 |
| | | | | |||||
* | | | | Add doc string for __nonzero__ overrides for sync results, raise not ↵ | Mark Haines | 2015-01-30 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | implemented if the client attempts to do a gapless sync | ||||
* | | | | Check if the user has joined the room between incremental syncs | Mark Haines | 2015-01-30 | 1 | -4/+27 |
| | | | | |||||
* | | | | Pass client info to the sync_config | Mark Haines | 2015-01-30 | 1 | -2/+3 |
| | | | | |||||
* | | | | Fix token formatting | Mark Haines | 2015-01-30 | 1 | -3/+3 |
| | | | | |||||
* | | | | Filter the recent events before applying the limit when doing an initial sync | Mark Haines | 2015-01-30 | 1 | -11/+10 |
| | | | | |||||
* | | | | Filter the recent events before applying the limit when doing an incremental ↵ | Mark Haines | 2015-01-30 | 1 | -15/+38 |
| | | | | | | | | | | | | | | | | sync with a gap | ||||
* | | | | Update todo for the filtering on sync | Mark Haines | 2015-01-29 | 1 | -1/+2 |
| | | | | |||||
* | | | | Fix indent | Mark Haines | 2015-01-29 | 1 | -1/+1 |
| | | | | |||||
* | | | | Move typing notifs to an "emphermal" event list on the room object | Mark Haines | 2015-01-29 | 1 | -5/+7 |
| | | | | |||||
* | | | | Fix check for empty room update | Mark Haines | 2015-01-29 | 1 | -1/+1 |
| | | | | |||||
* | | | | Fix v2 initial sync | Mark Haines | 2015-01-29 | 1 | -1/+2 |
| | | | | |||||
* | | | | Use get_room_events_stream to get changes to the rooms if the number of ↵ | Mark Haines | 2015-01-29 | 1 | -11/+45 |
| | | | | | | | | | | | | | | | | changes is small | ||||
* | | | | Remove typing TODO | Mark Haines | 2015-01-29 | 1 | -1/+0 |
| | | | | |||||
* | | | | Add typing notifications to sync | Mark Haines | 2015-01-29 | 1 | -9/+21 |
| | | | | |||||
* | | | | Merge branch 'develop' into client_v2_sync | Mark Haines | 2015-01-28 | 4 | -34/+51 |
|\ \ \ \ | | |/ / | |/| | | |||||
| * | | | Merge pull request #36 from matrix-org/device_id_from_access_token | Mark Haines | 2015-01-28 | 1 | -1/+11 |
| |\ \ \ | | | | | | | | | | | Extract the device id and token id from the access token when autheniticating users | ||||
| | * | | | Extract the id token of the token when authing users, include the token and ↵ | Mark Haines | 2015-01-28 | 1 | -1/+11 |
| | | |/ | | |/| | | | | | | | | | device_id in the internal meta data for the event along with the transaction id when sending events | ||||
| * | | | Merge branch 'master' into develop | David Baker | 2015-01-28 | 1 | -1/+1 |
| |\ \ \ | |||||
| | * | | | Add matrix.org as a trusted ID server because it's now passed through on ↵ | David Baker | 2015-01-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | ports 80/443 and the web client defaults to that now. Fixes email validation (including signing up with an email address). | ||||
| * | | | | Merge branch 'develop' into pushers | David Baker | 2015-01-28 | 9 | -47/+68 |
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/events.py synapse/server.py | ||||
| * | | | | Reset badge count to zero when last active time is bumped | David Baker | 2015-01-28 | 1 | -0/+5 |
| | | | | | |||||
| * | | | | Oops, remove debugging | David Baker | 2015-01-27 | 1 | -1/+0 |
| | | | | | |||||
| * | | | | or of course we could just return the deferred | David Baker | 2015-01-27 | 1 | -2/+1 |
| | | | | | |||||
| * | | | | Need a defer.inlineCallbacks here as we yield in it: otherwise nothing in ↵ | David Baker | 2015-01-27 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | the cb gets executed. | ||||
| * | | | | Unbreak bad presence merge - don't add these blocks together with an and: ↵ | David Baker | 2015-01-27 | 1 | -12/+14 |
| | | | | | | | | | | | | | | | | | | | | they're different things. | ||||
| * | | | | Merge branch 'develop' into pushers | David Baker | 2015-01-22 | 4 | -12/+14 |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/rest/__init__.py | ||||
| * | | | | | Don't make the pushers' event streams cause people to appear online | David Baker | 2015-01-15 | 1 | -21/+22 |
| | | | | | | |||||
* | | | | | | Fix Formatting | Mark Haines | 2015-01-27 | 1 | -8/+5 |
| | | | | | | |||||
* | | | | | | Wait for events if the incremental sync is empty and a timeout is given | Mark Haines | 2015-01-27 | 1 | -7/+12 |
| | | | | | | |||||
* | | | | | | Start implementing incremental initial sync | Mark Haines | 2015-01-27 | 1 | -25/+208 |
| | | | | | | |||||
* | | | | | | Start implementing the non-incremental sync portion of the v2 /sync API | Mark Haines | 2015-01-26 | 2 | -25/+64 |
| | | | | | | |||||
* | | | | | | Merge branch 'develop' into client_v2_sync | Mark Haines | 2015-01-26 | 3 | -9/+24 |
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | |||||
| * | | | | | Pass the current time to serialize event, rather than passing an | Mark Haines | 2015-01-26 | 3 | -9/+24 |
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* / | | | | Add handler for /sync API | Mark Haines | 2015-01-26 | 1 | -0/+110 |
|/ / / / | |||||
* | | | | Replace hs.parse_roomalias with RoomAlias.from_string | Mark Haines | 2015-01-23 | 1 | -1/+2 |
| | | | | |||||
* | | | | Replace hs.parse_roomid with RoomID.from_string | Mark Haines | 2015-01-23 | 1 | -2/+0 |
| | | | | |||||
* | | | | Replace hs.parse_userid with UserID.from_string | Mark Haines | 2015-01-23 | 8 | -35/+42 |
| |/ / |/| | | |||||
* | | | Finish renaming "context" to "room_id" in federation codebase | Mark Haines | 2015-01-16 | 2 | -8/+6 |
| | | | |||||
* | | | Remove temporary debug logging that was accidentally committed | Mark Haines | 2015-01-16 | 1 | -2/+0 |
| | | | |||||
* | | | Don't try to cancel already-expired timers - SYN-230 | Paul "LeoNerd" Evans | 2015-01-13 | 1 | -2/+8 |
|/ / | |||||
* | | Use float rather than integer divisions to turn msec into sec - so timeouts ↵ | Paul "LeoNerd" Evans | 2015-01-12 | 1 | -1/+1 |
| | | | | | | | | under 1000msec will actually work | ||||
* | | Make typing notification timeouts print a (debug) logging message | Paul "LeoNerd" Evans | 2015-01-12 | 1 | -1/+7 |
| | | |||||
* | | Add raw query param for scrollback. | Kegan Dougal | 2015-01-08 | 1 | -2/+5 |
| | | |||||
* | | Return the raw federation event rather than adding extra keys for federation ↵ | Kegan Dougal | 2015-01-08 | 2 | -4/+5 |
| | | | | | | | | data. | ||||
* | | Add missing continuation indent. | Erik Johnston | 2015-01-08 | 1 | -1/+2 |
| | | |||||
* | | Add 'raw' query parameter to expose the event graph and signatures to savvy ↵ | Kegan Dougal | 2015-01-08 | 2 | -4/+9 |
| | | | | | | | | clients. | ||||
* | | PEP8 and pyflakes warnings | Kegan Dougal | 2015-01-07 | 2 | -2/+4 |
| | | |||||
* | | SYN-154: Tweak how the m.room.create check is done. | Kegan Dougal | 2015-01-07 | 1 | -2/+11 |
| | | | | | | | | | | Don't perform the check in auth.is_host_in_room but instead do it in _do_join and also assert that there are no m.room.members in the room before doing so. | ||||
* | | SYN-154: Better error messages when joining an unknown room by ID. | Kegan Dougal | 2015-01-07 | 2 | -5/+7 |
|/ | | | | | | The simple fix doesn't work here because room creation also involves unknown room IDs. The check relies on the presence of m.room.create for rooms being created, whereas bogus room IDs have no state events at all. | ||||
* | RoomsForUser now has sender instead of user_id | Erik Johnston | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Merge branch 'erikj-perf' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-01-06 | 1 | -5/+5 |
|\ | |||||
| * | We don't need the full events for get_rooms_for_user_where_membership_is | Erik Johnston | 2015-01-06 | 1 | -5/+5 |
| | | |||||
* | | Merge pull request #28 from matrix-org/erikj-perf | Mark Haines | 2015-01-06 | 1 | -8/+5 |
|\| | | | | | Database performance improvements. | ||||
| * | Add RoomMemberStore.get_users_in_room, so that we can get the list of joined ↵ | Erik Johnston | 2015-01-06 | 1 | -8/+5 |
| | | | | | | | | users without having to retrieve the full events | ||||
* | | Update copyright notices | Mark Haines | 2015-01-06 | 13 | -13/+13 |
|/ | |||||
* | Rate limit display names and avatar urls per request rather than per event. | Kegan Dougal | 2014-12-19 | 1 | -2/+4 |
| | |||||
* | Set a state_key for the topic and room name, otherwise they won't be treated ↵ | Mark Haines | 2014-12-19 | 1 | -0/+2 |
| | | | | as room state | ||||
* | bump_presence_active_time when sending a message event | Mark Haines | 2014-12-19 | 1 | -0/+6 |
| | |||||
* | Don't ratelimit room create events | Mark Haines | 2014-12-19 | 2 | -3/+4 |
| | |||||
* | Set display name when joining via alias | Mark Haines | 2014-12-19 | 1 | -0/+5 |
| | |||||
* | s/user_id/sender/ | Mark Haines | 2014-12-19 | 1 | -1/+1 |
| | |||||
* | Supply auth_chain along with current state in '/state/', fetch auth events ↵ | Mark Haines | 2014-12-18 | 1 | -23/+32 |
| | | | | from a remote server if we are missing some of them | ||||
* | Don't yield on sending the event accross federation. | Mark Haines | 2014-12-18 | 1 | -2/+2 |
| | |||||
* | Fix where we pulled in event.state_events from hotfixes branch | Erik Johnston | 2014-12-16 | 1 | -1/+1 |
| | |||||
* | Merge branch 'hotfixes-v0.5.4a' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2014-12-16 | 1 | -2/+6 |
|\ | | | | | | | release-v0.6.0 | ||||
| * | Add FIXME | Erik Johnston | 2014-12-16 | 1 | -0/+1 |
| | | |||||
| * | Fix bug where we did not send the full auth chain to people that joined over ↵ | Erik Johnston | 2014-12-16 | 1 | -2/+5 |
| | | | | | | | | federation | ||||
* | | Make error messages slightly more helpful | Erik Johnston | 2014-12-16 | 1 | -5/+5 |
| | | |||||
* | | Merge branch 'release-v0.6.0' into develop | Mark Haines | 2014-12-16 | 1 | -0/+5 |
|\ \ | |||||
| * | | Enable rate limiting for all events | Erik Johnston | 2014-12-16 | 1 | -0/+5 |
| | | | |||||
* | | | Remove send_message since nothing was calling it. Remove Snapshot because ↵ | Mark Haines | 2014-12-16 | 1 | -38/+0 |
| | | | | | | | | | | | | only send_message was using it | ||||
* | | | Construct the EventContext in the state handler rather than constructing one ↵ | Mark Haines | 2014-12-16 | 2 | -19/+6 |
| | | | | | | | | | | | | and then immediately calling state_handler.annotate_context_with_state | ||||
* | | | clean up coding style a bit | Mark Haines | 2014-12-16 | 4 | -12/+8 |
|/ / | |||||
* | | Kill off synapse.api.events.* | Erik Johnston | 2014-12-16 | 4 | -30/+25 |
| | | |||||
* | | Add fixme to raising of AuthError in federation land | Erik Johnston | 2014-12-16 | 1 | -0/+1 |
| | | |||||
* | | User.is_mine is no longer a thing. Use hs.is_mine instead. | Erik Johnston | 2014-12-15 | 1 | -1/+1 |
| | | |||||
* | | Rename MessageHandler.handle_event. Add a few comments. | Erik Johnston | 2014-12-15 | 5 | -7/+24 |
| | | |||||
* | | Get current member state from current_state snapshot. Fix leave test. | Erik Johnston | 2014-12-15 | 1 | -3/+3 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactor | Erik Johnston | 2014-12-15 | 2 | -20/+112 |
|\ \ | | | | | | | | | | | | | Conflicts: tests/handlers/test_room.py | ||||
| * | | Still send typing notifications to myself if I'm the only one in the room ↵ | Paul "LeoNerd" Evans | 2014-12-15 | 1 | -2/+1 |
| | | | | | | | | | | | | (it's a lonely life...) | ||||
| * | | Send list of typing user IDs as 'user_ids' list within 'content', so that ↵ | Paul "LeoNerd" Evans | 2014-12-12 | 1 | -1/+3 |
| | | | | | | | | | | | | m.typing stream events have a toplevel content, for consistency with others | ||||
| * | | When users leave rooms mark them as no longer typing in them | Paul "LeoNerd" Evans | 2014-12-11 | 1 | -0/+8 |
| | | | |||||
| * | | Add a 'user_left_room' distributor signal analogous to 'user_joined_room' | Paul "LeoNerd" Evans | 2014-12-11 | 1 | -0/+7 |
| | | | |||||
| * | | Actually auth-check to ensure people can only send typing notifications for ↵ | Paul "LeoNerd" Evans | 2014-12-11 | 1 | -0/+4 |
| | | | | | | | | | | | | rooms they're actually in | ||||
| * | | Add a sprinkling of logger.debug() into typing notification handler | Paul "LeoNerd" Evans | 2014-12-11 | 1 | -0/+8 |
| | | | |||||
| * | | Initial hack at unit tests of room typing REST API | Paul "LeoNerd" Evans | 2014-12-11 | 1 | -0/+7 |
| | | | |||||
| * | | Avoid cyclic dependency in handler setup | Paul "LeoNerd" Evans | 2014-12-10 | 1 | -4/+10 |
| | | | |||||
| * | | Hook up the event stream to typing notifications | Paul "LeoNerd" Evans | 2014-12-10 | 1 | -2/+22 |
| | | | |||||
| * | | Store serial numbers per room for typing event stream purposes | Paul "LeoNerd" Evans | 2014-12-10 | 1 | -13/+28 |
| | | | |||||
| * | | First hack at implementing timeouts in typing notification handler | Paul "LeoNerd" Evans | 2014-12-10 | 1 | -3/+19 |
| | | | |||||
* | | | Validate message, topic and name event contents | Erik Johnston | 2014-12-12 | 1 | -1/+1 |
| | | | |||||
* | | | Fix federation test | Erik Johnston | 2014-12-11 | 1 | -1/+1 |
| | | | |||||
* | | | Fix public room joining by making sure replaces_state never points to itself. | Erik Johnston | 2014-12-11 | 1 | -7/+7 |
| | | | |||||
* | | | .from_string() no longer takes a HS | Erik Johnston | 2014-12-10 | 1 | -2/+2 |
| | | | |||||
* | | | Remove dead code | Erik Johnston | 2014-12-10 | 1 | -2/+0 |
| | | | |||||
* | | | Add some basic event validation | Erik Johnston | 2014-12-10 | 1 | -2/+6 |
| | | | |||||
* | | | Fix bug where we clobbered old state group values | Erik Johnston | 2014-12-10 | 1 | -0/+9 |
| | | | |||||
* | | | Fix bug when uploading state with empty state_key | Erik Johnston | 2014-12-10 | 2 | -76/+5 |
| | | | |||||
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactor | Erik Johnston | 2014-12-10 | 1 | -0/+7 |
|\| | | |||||
| * | | fix a million stupid bugs and make it actually work | Matthew Hodgson | 2014-12-08 | 1 | -1/+2 |
| | | | |||||
| * | | actually reset retry schedule if we can successfuly talk to it | Matthew Hodgson | 2014-12-08 | 1 | -0/+6 |
| | | | |||||
* | | | Fix AttributeError | Erik Johnston | 2014-12-10 | 1 | -1/+1 |
| | | | |||||
* | | | Make depth increase. | Erik Johnston | 2014-12-10 | 1 | -1/+1 |
| | | | |||||
* | | | Try and figure out how and why signatures are being changed. | Erik Johnston | 2014-12-10 | 3 | -9/+53 |
| | | | |||||
* | | | PEP8 | Erik Johnston | 2014-12-09 | 1 | -1/+1 |
| | | | |||||
* | | | Fix joining from an invite | Erik Johnston | 2014-12-09 | 3 | -16/+17 |
| | | | |||||
* | | | Remove unused snapshot | Erik Johnston | 2014-12-09 | 1 | -2/+0 |
| | | | |||||
* | | | Remove unused import | Erik Johnston | 2014-12-09 | 1 | -2/+1 |
| | | | |||||
* | | | More bug fixes | Erik Johnston | 2014-12-08 | 2 | -19/+31 |
| | | | |||||
* | | | More bug fixes | Erik Johnston | 2014-12-08 | 3 | -10/+13 |
| | | | |||||
* | | | More bug fixes | Erik Johnston | 2014-12-08 | 2 | -3/+7 |
| | | | |||||
* | | | Fix registration | Erik Johnston | 2014-12-08 | 1 | -2/+4 |
| | | | |||||
* | | | Various typos and bug fixes. | Erik Johnston | 2014-12-08 | 2 | -62/+43 |
| | | | |||||
* | | | Start making more things use EventContext rather than event.* | Erik Johnston | 2014-12-05 | 2 | -99/+84 |
| | | | |||||
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactor | Erik Johnston | 2014-12-04 | 1 | -5/+7 |
|\| | | |||||
| * | | @log_function on PresenceStream's get_new_events_for_user() | Paul "LeoNerd" Evans | 2014-12-03 | 1 | -1/+3 |
| | | | |||||
| * | | Store any incoming presence push in the local cache anyway, even if there's ↵ | Paul "LeoNerd" Evans | 2014-12-03 | 1 | -4/+4 |
| |/ | | | | | | | no interested observers (yet *hint*) (SYN-115) | ||||
* | | Convert rest and handlers to use new event structure | Erik Johnston | 2014-12-04 | 6 | -116/+111 |
| | | |||||
* | | Begin converting things to use the new Event structure | Erik Johnston | 2014-12-04 | 3 | -19/+56 |
| | | |||||
* | | WIP for new way of managing events. | Erik Johnston | 2014-12-03 | 1 | -0/+51 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactor | Erik Johnston | 2014-12-03 | 2 | -1/+10 |
|\| | |||||
| * | Extra verbosity on logging of received presence info | Paul "LeoNerd" Evans | 2014-12-02 | 1 | -0/+5 |
| | | |||||
| * | Squash room_ids list to a set() to remove duplicates - with TODO marker as I ↵ | Paul "LeoNerd" Evans | 2014-12-02 | 1 | -1/+5 |
| | | | | | | | | have no idea /why/ the dups are happening in the first place | ||||
* | | Change DomainSpecificString so that it doesn't use a HomeServer object | Erik Johnston | 2014-12-02 | 6 | -41/+44 |
|/ | |||||
* | Fix bugs when joining a remote room that has dodgy event graphs. This should ↵ | Erik Johnston | 2014-11-27 | 1 | -28/+55 |
| | | | | also fix the number of times a HS will trigger a GET /event/ | ||||
* | on_receive_pdu takes more args | Erik Johnston | 2014-11-27 | 1 | -3/+3 |
| | |||||
* | Change the way we get missing auth and state events | Erik Johnston | 2014-11-27 | 1 | -16/+61 |
| | |||||
* | Re-sign events when we return them via federation as a temporary hack to ↵ | Erik Johnston | 2014-11-27 | 1 | -0/+11 |
| | | | | work around the problem where we reconstruct events differently than when they were signed | ||||
* | Attempt to fix bug where we 500d an event stream due to trying to cancel a ↵ | Erik Johnston | 2014-11-26 | 1 | -3/+9 |
| | | | | timer twice | ||||
* | Add a workaround for bug where some initial join events don't reference ↵ | Erik Johnston | 2014-11-26 | 1 | -1/+7 |
| | | | | creation events in their auth_events | ||||
* | Catch exceptions when trying to add an entry to rooms tables | Erik Johnston | 2014-11-26 | 1 | -6/+11 |
| | |||||
* | Correctly handle the case where we get an event for an unknown room, which ↵ | Erik Johnston | 2014-11-26 | 1 | -28/+44 |
| | | | | turns out we are actually in | ||||
* | Fix bugs in invite/join dances. | Erik Johnston | 2014-11-25 | 3 | -54/+94 |
| | | | | | We now do more implement more of the auth on the events so that we don't reject valid events. | ||||
* | We don't always want to Auth get_persisted_pdu | Erik Johnston | 2014-11-24 | 1 | -7/+8 |
| | |||||
* | Return 404 M_NOT_FOUND when trying to look up a room alias that doesn't exist | Mark Haines | 2014-11-21 | 1 | -12/+24 |
| | |||||
* | SYN-58: Allow passing explicit limit=0 to initialSync to request no messages ↵ | Paul "LeoNerd" Evans | 2014-11-20 | 1 | -1/+1 |
| | | | | at all; missing still implies default 10 | ||||
* | Fix pep8 and pyflakes warnings | Mark Haines | 2014-11-20 | 2 | -4/+10 |
| | |||||
* | Merge branch 'develop' into http_client_refactor | David Baker | 2014-11-20 | 9 | -48/+64 |
|\ | |||||
| * | Fix pep8 codestyle warnings | Mark Haines | 2014-11-20 | 4 | -9/+13 |
| | | |||||
| * | Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵ | Mark Haines | 2014-11-20 | 8 | -40/+52 |
| | | | | | | | | because they don't interact well with the logging contexts | ||||
* | | Separate out the matrix http client completely because just about all of its ↵ | David Baker | 2014-11-20 | 2 | -10/+16 |
| | | | | | | | | code it now separate from the simple case we need for standard HTTP(S) | ||||
* | | Oops, I removed this param. | David Baker | 2014-11-20 | 1 | -2/+0 |
| | | |||||
* | | Refactor the HTTP clients a little. | David Baker | 2014-11-20 | 2 | -5/+5 |
|/ | |||||
* | SYN-153: Fix formatting of federation error message | Mark Haines | 2014-11-20 | 1 | -1/+1 |
| | |||||
* | Don't add a 'prev' key to m.room.member messages | Erik Johnston | 2014-11-19 | 2 | -4/+0 |
| | |||||
* | Initialise UserPresenceCache instances to always contain a 'presence' key | Paul "LeoNerd" Evans | 2014-11-19 | 1 | -4/+2 |
| | |||||
* | SYN-153: Raise 404 if room alias is not found | Mark Haines | 2014-11-19 | 1 | -4/+8 |
| |