summary refs log tree commit diff
path: root/synapse/handlers/room.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Join logic covers both room creator and arbitrary usersAndrew Morgan2019-01-221-33/+0
|
* tags, m.direct copying over correctlyAndrew Morgan2019-01-221-9/+13
|
* Migrating dm and room tags work for migratorAndrew Morgan2019-01-221-2/+13
|
* Prevent crash on user who doesn't have any direct roomsAndrew Morgan2019-01-221-1/+1
|
* Preserve DM status of a room on upgradeAndrew Morgan2019-01-221-0/+19
| | | | Signed-off-by: Andrew Morgan <andrew@amorgan.xyz>
* Fix typoAndrew Morgan2019-01-221-2/+2
|
* Migrate encryption state on room upgrade (#4411)Andrew Morgan2019-01-211-0/+1
| | | | | | | | * Migrate encryption state on room upgrade Signed-off-by: Andrew Morgan <andrew@amorgan.xyz> * Add changelog file
* create support user (#4141)Neil Johnson2018-12-141-1/+1
| | | | | | Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits.
* Merge pull request #4101 from matrix-org/rav/aliases_for_upgradesRichard van der Hoff2018-10-311-8/+112
|\ | | | | Attempt to move room aliases on room upgrades
| * Avoid else clause on exception for clarityRichard van der Hoff2018-10-311-2/+1
| |
| * Attempt to move room aliases on room upgradesRichard van der Hoff2018-10-311-8/+113
| |
* | Log some bits about event creation (#4121)Richard van der Hoff2018-10-311-0/+4
|/ | | | I found these helpful in debugging my room upgrade tests.
* Merge pull request #4100 from matrix-org/rav/room_upgrade_avatarRichard van der Hoff2018-10-291-1/+2
|\ | | | | Remember to copy the avatar on room upgrades
| * Remember to copy the avatar on room upgradesRichard van der Hoff2018-10-261-1/+2
| |
* | Better handling of odd PLs during room upgradesRichard van der Hoff2018-10-271-44/+81
|/ | | | | | | Fixes handling of rooms where we have permission to send the tombstone, but not other state. We need to (a) fail more gracefully when we can't send the PLs in the old room, and (b) not set the PLs in the new room until we are done with the other stuff.
* optimise state copyingRichard van der Hoff2018-10-261-7/+5
|
* Address review commentsRichard van der Hoff2018-10-261-7/+9
| | | | Improve comments, get old room state from the context we already have
* restrict PLs in old roomRichard van der Hoff2018-10-251-1/+43
|
* copy stateRichard van der Hoff2018-10-251-11/+26
|
* preserve PLsRichard van der Hoff2018-10-251-1/+7
|
* preserve room visibilityRichard van der Hoff2018-10-251-3/+5
|
* Basic initial support for room upgradesRichard van der Hoff2018-10-251-0/+121
| | | | | Currently just creates a new, empty, room, and sends a tombstone in the old room.
* Allow power_level_content_override=None for _send_events_for_new_roomRichard van der Hoff2018-10-251-5/+6
|
* Make room_member_handler a member of RoomCreationHandlerRichard van der Hoff2018-10-251-6/+3
| | | | ... to save passing it into `_send_events_for_new_room`
* Factor _generate_room_id out of create_roomRichard van der Hoff2018-10-251-22/+23
| | | | we're going to need this for room upgrades.
* Refactor state group lookup to reduce DB hits (#4011)Erik Johnston2018-10-251-10/+12
| | | | | | | | Currently when fetching state groups from the data store we make two hits two the database: once for members and once for non-members (unless request is filtered to one or the other). This adds needless load to the datbase, so this PR refactors the lookup to make only a single database hit.
* Clean up room alias creationErik Johnston2018-10-191-2/+3
|
* block event creation and room creation on hitting resource limitsNeil Johnson2018-08-161-0/+4
|
* Don't expose default_room_version as config optRichard van der Hoff2018-08-071-1/+2
|
* Basic support for room versioningRichard van der Hoff2018-08-031-1/+26
| | | | | | | | This is the first tranche of support for room versioning. It includes: * setting the default room version in the config file * new room_version param on the createRoom API * storing the version of newly-created rooms in the m.room.create event * fishing the version of existing rooms out of the m.room.create event
* make /context lazyload & filter aware (#3567)Matthew Hodgson2018-07-271-3/+21
| | | make /context lazyload & filter aware.
* Replace usage of get_current_toke with StreamToken.STARTErik Johnston2018-07-241-5/+7
| | | | | | | | This allows us to handle /context/ requests on the client_reader worker without having to pull in all the various stream handlers (e.g. precence, typing, pushers etc). The only thing the token gets used for is pagination, and that ignores everything but the room portion of the token.
* Move RoomContextHandler out of HandlersErik Johnston2018-07-181-1/+5
| | | | This is in preparation for moving GET /context/ to a worker
* run isortAmber Brown2018-07-091-11/+8
|
* Add error code to room creation errorMichael Wagner2018-06-141-2/+6
| | | | This error code is mentioned in the documentation at https://matrix.org/docs/api/client-server/#!/Room32creation/createRoom
* Consistently use six's iteritems and wrap lazy keys/values in list() if ↵Amber Brown2018-05-311-1/+1
| | | | they're not meant to be lazy (#3307)
* Reject attempts to send event before privacy consent is givenRichard van der Hoff2018-05-221-0/+4
| | | | | | Returns an M_CONSENT_NOT_GIVEN error (cf https://github.com/matrix-org/matrix-doc/issues/1252) if consent is not yet given.
* Infrastructure for a server notices roomRichard van der Hoff2018-05-171-2/+14
| | | | | | | Server Notices use a special room which the user can't dismiss. They are created on demand when some other bit of the code calls send_notice. (This doesn't actually do much yet becuse we don't call send_notice anywhere)
* Move RoomCreationHandler out of synapse.handlers.HandlersRichard van der Hoff2018-05-171-2/+6
| | | | | | | Handlers is deprecated nowadays, so let's move this out before I add a new dependency on it. Also fix the docstrings on create_room.
* Remove ability for AS users to call /events and /syncErik Johnston2018-03-051-6/+3
| | | | | | | This functionality has been deprecated for a while as well as being broken for a while. Instead of fixing it lets just remove it entirely. See: https://github.com/matrix-org/matrix-doc/issues/1144
* Move RoomMemberHandler out of HandlersErik Johnston2018-03-011-2/+2
|
* Update copyrightErik Johnston2018-02-061-0/+1
|
* Update places where we create eventsErik Johnston2018-02-051-6/+4
|
* PEP8Erik Johnston2017-11-281-1/+1
|
* Fix wrong avatars when inviting multiple users when creating roomErik Johnston2017-11-281-5/+5
| | | We reused the `content` dictionary between invite requests, which meant they could end up reusing the profile info for a previous user
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
| | | | what could possibly go wrong
* Remove pointless create() methodRichard van der Hoff2017-10-201-2/+2
| | | | | It just calls the constructor, so we may as well kill it rather than having random codepaths.
* un-double indentDavid Baker2017-10-041-1/+1
|
* Add room creation checks to spam checkerDavid Baker2017-10-041-0/+8
| | | | | Lets the spam checker deny attempts to create rooms and add aliases to them.
* Change to create new room and join other usersErik Johnston2017-06-191-4/+17
|
* Add per user ratelimiting overridesErik Johnston2017-05-101-1/+1
|
* Remove unused paramErik Johnston2017-02-201-1/+1
|
* Fix /context/ visibiltiy rulesErik Johnston2017-02-201-1/+4
|
* Make presence.get_new_events a bit fasterErik Johnston2017-02-021-0/+1
| | | | We do this by caching the set of users a user shares rooms with.
* Merge pull request #653 from matrix-org/erikj/preset_guest_joinErik Johnston2016-12-051-0/+10
|\ | | | | Enable guest access for private rooms by default
| * Enable guest access for private rooms by defaultErik Johnston2016-03-171-0/+10
| |
* | Fix incredubly slow back pagination queryErik Johnston2016-10-241-2/+5
| | | | | | | | | | | | | | If a client didn't specify a from token when paginating backwards synapse would attempt to query the (global) maximum topological token. This a) doesn't make much sense since they're room specific and b) there are no indices that lets postgres do this efficiently.
* | storage/appservice: make appservice methods only relying on the cache ↵Patrik Oldsberg2016-10-061-1/+1
| | | | | | | | synchronous
* | Move RoomListHandler into a separate fileErik Johnston2016-09-141-158/+1
| |
* | Add is_direct param to /createRoomErik Johnston2016-09-121-0/+6
| |
* | Add server param to /publicRoomsErik Johnston2016-09-081-0/+10
| |
* | Cache federation state responsesErik Johnston2016-07-211-2/+2
| |
* | Pull full state for each room all at onceErik Johnston2016-06-081-16/+16
| |
* | Fix room list spideringDavid Baker2016-06-011-1/+1
| |
* | Add cache to remote room listsDavid Baker2016-05-311-4/+30
| | | | | | | | Poll for updates from remote servers, waiting for the poll if there's no cache entry.
* | Basic, un-cached support for secondary_directory_serversDavid Baker2016-05-311-1/+32
| |
* | move filter_events_for_client out of base handlerMark Haines2016-05-111-2/+5
| |
* | Run filter_events_for_clientDavid Baker2016-04-271-1/+1
| | | | | | | | so we don't accidentally mail out events people shouldn't see
* | Don't return empty public roomsErik Johnston2016-04-121-5/+8
| |
* | Move all the wrapper functions for distributor.fireMark Haines2016-04-081-15/+0
| | | | | | | | | | | | | | Move the functions inside the distributor and import them where needed. This reduces duplication and makes it possible for flake8 to detect when the functions aren't used in a given file.
* | Add concurrently_execute functionErik Johnston2016-04-011-10/+7
| |
* | Split out RoomMemberHandlerErik Johnston2016-03-311-602/+3
| |
* | Line lengthErik Johnston2016-03-311-1/+3
| |
* | Only forget room if you were in the roomErik Johnston2016-03-301-1/+2
| |
* | Require user to have left room to forget roomErik Johnston2016-03-301-6/+16
| | | | | | | | | | This dramatically simplifies the forget API code - in particular it no longer generates a leave event.
* | Add a response cache for getting the public room listMark Haines2016-03-241-1/+11
| |
* | Ensure all old public rooms have aliasesErik Johnston2016-03-231-4/+5
| |
* | Ensure published rooms have public join rulesErik Johnston2016-03-231-0/+7
| |
* | CommentErik Johnston2016-03-231-0/+3
| |
* | Don't require alias in public room list.Erik Johnston2016-03-231-14/+13
|/ | | | | | | Rooms now no longer require an alias to be published. Also, changes the way we pull out state of each room to not require fetching all state events.
* Add config to create guest account on 3pid inviteErik Johnston2016-03-141-25/+32
| | | | | | | | | | | | | Currently, when a 3pid invite request is sent to an identity server, it includes a provisioned guest access token. This allows the link in the, say, invite email to include the guest access token ensuring that the same account is used each time the link is clicked. This flow has a number of flaws, including when using different servers or servers that have guest access disabled. For now, we keep this implementation but hide it behind a config option until a better flow is implemented.
* Send the user ID matching the guest access token, since there is no Matrix ↵David Baker2016-03-071-0/+5
| | | | API to discover what user ID an access token is for.
* Merge pull request #623 from matrix-org/rav/fix_createroom_raceRichard van der Hoff2016-03-041-1/+1
|\ | | | | Make sure we add all invited members before returning from createRoom
| * Make sure we add all invited members before returning from createRoomRichard van der Hoff2016-03-041-1/+1
| | | | | | | | add a missing yield.
* | Merge remote-tracking branch 'origin/develop' into rav/SYN-642Richard van der Hoff2016-03-031-31/+45
|\|
| * Pass whole requester to ratelimitingDaniel Wagner-Hall2016-03-031-31/+45
| | | | | | | | This will enable more detailed decisions
* | Fix typoRichard van der Hoff2016-03-031-1/+1
| |
* | Move arg default to the start of the functionRichard van der Hoff2016-03-021-2/+3
| | | | | | | | Also don't overwrite the list that gets passed in.
* | Address review commentsRichard van der Hoff2016-03-021-2/+3
| |
* | Handle rejections of invites from local users locallyRichard van der Hoff2016-03-011-5/+18
|/ | | | | Slightly hacky fix to SYN-642, which avoids the federation codepath when trying to reject invites from local users.
* Generate guest access token on 3pid invitesDaniel Wagner-Hall2016-02-241-0/+8
| | | | | | | | | This means that following the same link across multiple sessions or devices can re-use the same guest account. Note that this is somewhat of an abuse vector; we can't throw up captchas on this flow, so this is a way of registering ephemeral accounts for spam, whose sign-up we don't rate limit.
* Allow third_party_signed to be specified on /joinDaniel Wagner-Hall2016-02-231-8/+59
|
* Review commentsDaniel Wagner-Hall2016-02-181-5/+4
|
* Some cleanupDaniel Wagner-Hall2016-02-171-66/+58
| | | | | I'm not particularly happy with the "action" switching, but there's no convenient way to defer the work that needs to happen after it, so... :(
* Respond to federated invite with non-empty contextDaniel Wagner-Hall2016-02-171-40/+12
| | | | | | | Currently, we magically perform an extra database hit to find the inviter, and use this to guess where we should send the event. Instead, fill in a valid context, so that other callers relying on the context actually have one.
* Some cleanup, some TODOs, more to doDaniel Wagner-Hall2016-02-161-68/+60
|
* Some cleanupDaniel Wagner-Hall2016-02-161-19/+20
|
* Tidy? up room creation event sendingDaniel Wagner-Hall2016-02-161-63/+72
|
* Merge branch 'develop' into daniel/roomcleanupincrementalDaniel Wagner-Hall2016-02-161-3/+3
|\ | | | | | | | | Conflicts: synapse/handlers/room.py
| * Simplify room creation codeDaniel Wagner-Hall2016-02-151-40/+28
| |
* | Branch off member and non member sendsDaniel Wagner-Hall2016-02-151-34/+46
| | | | | | | | Unclean, needs tidy-up, but works
* | Simplify room creation codeDaniel Wagner-Hall2016-02-151-37/+25
| |
* | Use update_membership for profile updatesDaniel Wagner-Hall2016-02-151-4/+0
| |
* | Use update_membership to kick guestsDaniel Wagner-Hall2016-02-151-2/+9
| |
* | Reuse update_membership from /joinDaniel Wagner-Hall2016-02-151-3/+9
| |
* | Inline _do_local_membership_updateDaniel Wagner-Hall2016-02-151-18/+7
| |
* | Inline _do_join as it now only has one callerDaniel Wagner-Hall2016-02-151-48/+47
| | | | | | | | | | | | Also, consistently apply rate limiting. Again, ugly, but a step in the right direction.
* | Merge implementation of /join by alias or IDDaniel Wagner-Hall2016-02-151-25/+15
| | | | | | | | | | This code is kind of rough (passing the remote servers down a long chain), but is a step towards improvement.
* | Merge some room joining codepathsDaniel Wagner-Hall2016-02-151-4/+10
|/ | | | | | Force joining by alias to go through the send_membership_event checks, rather than bypassing them straight into _do_join. This is the first of many stages of cleanup.
* Revert "Merge two of the room join codepaths"Daniel Wagner-Hall2016-02-121-35/+9
| | | | | | This reverts commit cf81375b94c4763766440471e632fc4b103450ab. It subtly violates a guest joining auth check
* Merge two of the room join codepathsDaniel Wagner-Hall2016-02-121-9/+35
| | | | | | | | | | | | | There's at least one more to merge in. Side-effects: * Stop reporting None as displayname and avatar_url in some cases * Joining a room by alias populates guest-ness in join event * Remove unspec'd PUT version of /join/<room_id_or_alias> which has not been called on matrix.org according to logs * Stop recording access_token_id on /join/room_id - currently we don't record it on /join/room_alias; I can try to thread it through at some point.
* Return events in correct order for /eventsErik Johnston2016-02-111-0/+1
|
* Fix up logcontextsErik Johnston2016-02-081-2/+9
|
* PEP8Erik Johnston2016-02-031-1/+1
|
* Remove unused methodErik Johnston2016-02-031-8/+0
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2016-02-031-3/+8
|\ | | | | | | erikj/public_room_fix
| * Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
| |
| * s/get_room_changes_for_user/get_membership_changes_for_user/Erik Johnston2016-02-021-1/+1
| |
| * WARN if we get a topo token instead of stream.Erik Johnston2016-02-021-1/+6
| |
* | Change the way we do public room list fetchingErik Johnston2016-02-021-23/+63
|/
* Order things correctlyErik Johnston2016-02-011-1/+1
|
* Switch over /events to use per room cachesErik Johnston2016-02-011-5/+20
|
* Allow non-guests to peek on rooms using /eventsDaniel Wagner-Hall2016-01-201-1/+1
|
* Require unbanning before other membership changesDaniel Wagner-Hall2016-01-151-2/+53
|
* Remove unused parametersDaniel Wagner-Hall2016-01-151-11/+5
|
* Merge branch 'release-v0.12.1' into developRichard van der Hoff2016-01-141-12/+23
|\
| * Add 'event' result to 'context' endpointRichard van der Hoff2016-01-131-12/+23
| | | | | | | | ... because the context isn't much use without the event.
| * Skip, rather than erroring, invalid guest requestsDaniel Wagner-Hall2016-01-131-2/+0
| | | | | | | | | | | | | | | | | | | | Erroring causes problems when people make illegal requests, because they don't know what limit parameter they should pass. This is definitely buggy. It leaks message counts for rooms people don't have permission to see, via tokens. But apparently we already consciously decided to allow that as a team, so this preserves that behaviour.
* | Skip, rather than erroring, invalid guest requestsDaniel Wagner-Hall2016-01-051-2/+0
| | | | | | | | | | | | | | | | | | | | Erroring causes problems when people make illegal requests, because they don't know what limit parameter they should pass. This is definitely buggy. It leaks message counts for rooms people don't have permission to see, via tokens. But apparently we already consciously decided to allow that as a team, so this preserves that behaviour.
* | Allow guests to upgrade their accountsDaniel Wagner-Hall2016-01-051-1/+1
| |
* | Use named argsErik Johnston2016-01-051-2/+2
| |
* | Support inviting 3pids in /createRoomErik Johnston2016-01-051-0/+16
|/
* Return room avatar URLs in /publicRoomsDaniel Wagner-Hall2015-12-211-2/+21
| | | | | Spec: https://github.com/matrix-org/matrix-doc/pull/244 Tests: https://github.com/matrix-org/sytest/pull/121
* Give the IS a bunch more 3pid invite contextDaniel Wagner-Hall2015-12-161-7/+60
| | | | This allows it to form richer emails
* Add caches for whether a room has been forgotten by a userMark Haines2015-12-101-1/+1
|
* Add commentsMark Haines2015-12-021-0/+3
|
* Merge branch 'develop' into markjh/edu_frequencyMark Haines2015-12-021-9/+15
|\ | | | | | | | | | | Conflicts: synapse/handlers/federation.py synapse/handlers/room.py
| * Wrap calls to distributor.fire in appropriately named functions so that ↵Mark Haines2015-12-011-9/+15
| | | | | | | | static analysis can work out want is calling what
* | Only fire user_joined_room on the distributor if the user has actually ↵Mark Haines2015-12-011-4/+6
|/ | | | joined the room
* Allow users to forget roomsDaniel Wagner-Hall2015-11-171-0/+3
|
* Fix missing profile data in federation joinsErik Johnston2015-11-121-1/+2
| | | | | There was a regression where we stopped including profile data in initial joins for rooms joined over federation.
* Allow guests to access room context APIDaniel Wagner-Hall2015-11-111-3/+9
|
* Allow guest users to join and message roomsDaniel Wagner-Hall2015-11-101-1/+15
|
* Get display name from identity server, not clientDaniel Wagner-Hall2015-11-091-5/+3
|
* Exchange 3pid invites for m.room.member invitesDaniel Wagner-Hall2015-11-051-8/+11
|
* Open up /events to anonymous users for room events onlyDaniel Wagner-Hall2015-11-051-1/+10
| | | | Squash-merge of PR #345 from daniel/anonymousevents
* Remove more unused parametersDaniel Wagner-Hall2015-11-021-1/+0
|
* DocsErik Johnston2015-10-281-0/+13
|
* Add room context apiErik Johnston2015-10-281-0/+42
|
* Allow rejecting invitesDaniel Wagner-Hall2015-10-201-41/+61
| | | | | This is done by using the same /leave flow as you would use if you had already accepted the invite and wanted to leave.
* Verify third party ID server certificatesDaniel Wagner-Hall2015-10-161-2/+29
|
* Use non-placeholder name for endpointDaniel Wagner-Hall2015-10-151-1/+1
|
* Look for keys on the right objectsDaniel Wagner-Hall2015-10-151-2/+2
|
* Move logic into handlerDaniel Wagner-Hall2015-10-131-0/+132
|
* Move event contents into third_party_layout fieldDaniel Wagner-Hall2015-10-131-4/+7
|
* Merge branch 'develop' into daniel/3pidinvitesDaniel Wagner-Hall2015-10-051-2/+21
|\
| * Add 'trusted_private_chat' to room creation presetsErik Johnston2015-10-021-0/+5
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/unfederatableErik Johnston2015-10-021-65/+12
| |\
| | * Merge pull request #287 from matrix-org/erikj/canonical_aliasErik Johnston2015-09-301-1/+10
| | |\ | | | | | | | | Set m.room.canonical_alias on room creation.
| | | * Remove double indentationErik Johnston2015-09-301-7/+6
| | | |
| | | * Set m.room.canonical_alias on room creation.Erik Johnston2015-09-231-1/+11
| | | |
| * | | Add flag which disables federation of the roomErik Johnston2015-09-011-2/+6
| | | |
* | | | Implement third party identifier invitesDaniel Wagner-Hall2015-10-011-0/+4
| |/ / |/| |
* | | Merge pull request #288 from matrix-org/markjh/unused_definitionsMark Haines2015-09-281-26/+0
|\ \ \ | |_|/ |/| | Remove some of the unused definitions from synapse
| * | synapse/handlers/room.py:_should_invite_join was unusedMark Haines2015-09-231-26/+0
| | |
* | | Merge pull request #271 from matrix-org/erikj/default_historyErik Johnston2015-09-231-1/+1
|\ \ \ | |/ / |/| | Change default history visibility for private rooms
| * | Change default history visibility for private roomsErik Johnston2015-09-091-1/+1
| |/
* | Remove undocumented and unimplemented 'feedback' parameter from the ↵Mark Haines2015-09-091-1/+0
| | | | | | | | Client-Server API
* | Allow users that have left the room to view the member list from the point ↵Mark Haines2015-09-091-36/+0
|/ | | | they left
* Add m.room.avatar to default power levels. Change default required power ↵Erik Johnston2015-08-201-2/+3
| | | | levels of such events to 50
* Merge pull request #233 from matrix-org/erikj/canonical_aliasErik Johnston2015-08-201-0/+1
|\ | | | | Add server side support for canonical aliases
| * Add canonical alias to the default power levelsErik Johnston2015-08-191-0/+1
| |
* | Don't get apservice interested rooms in RoomHandler.get_joined_rooms_for_usersErik Johnston2015-08-191-8/+2
|/
* Implement specifying custom initial state for /createRoomErik Johnston2015-07-161-40/+60
|
* s/everyone_ops/original_invitees_have_ops/Erik Johnston2015-07-141-3/+3
|
* Capitalize contantsErik Johnston2015-07-141-4/+4
|
* Implement presets at room creationErik Johnston2015-07-131-22/+60
|
* Add m.room.history_visibility to newly created rooms' m.room.power_levelsErik Johnston2015-07-061-0/+1
|
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2015-05-221-3/+1
|\
| * Add caches for things requested by the pushersMark Haines2015-05-211-3/+1
| |
* | Throw error when creating room if alias contains whitespace #SYN-335David Baker2015-05-141-0/+5
| |
* | Merge pull request #144 from matrix-org/erikj/logging_contextMark Haines2015-05-121-2/+2
|\ \ | | | | | | Preserving logging contexts
| * | Unwrap defer.gatherResults failuresErik Johnston2015-05-121-2/+2
| |/
* / Make get_current_token accept a direction parameter, which tells whether the ↵Erik Johnston2015-05-121-2/+2
|/ | | | source whether we want a token for going 'forwards' or 'backwards'
* One too many lensErik Johnston2015-05-011-1/+1
|
* Change public room list to use defer.gatherResultsErik Johnston2015-05-011-5/+13
|
* Merge branch 'develop' of github.com:matrix-org/synapse into postgresErik Johnston2015-04-281-1/+2
|\
| * Create an 'invite' powerlevel when making new roomsPaul "LeoNerd" Evans2015-04-211-1/+2
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into postgresErik Johnston2015-04-271-4/+4
|\|
| * SYN-350: Don't ratelimit the individual events generated during room creationMark Haines2015-04-211-4/+4
| |
* | Sanitize RoomMemberStoreErik Johnston2015-03-231-19/+0
|/
* Change room handlers get_rooms_for_user to get_joined_rooms_for_user. This ↵Erik Johnston2015-03-091-3/+3
| | | | uses the a storage api that is cached.
* Finish impl to get new events for AS. ASes should now be able to poll /eventsKegan Dougal2015-02-261-1/+3
|
* Add stub functions and work out execution flow to implement AS event stream ↵Kegan Dougal2015-02-251-9/+25
| | | | polling.
* Remove debug loggingErik Johnston2015-02-111-2/+0
|
* Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵Erik Johnston2015-02-111-1/+3
| | | | JSONEncoder that understands FrozenDict
* Pass through list of room hosts from room alias query to federation so that ↵Erik Johnston2015-02-051-7/+5
| | | | it can retry against different room hosts
* Pass the current time to serialize event, rather than passing anMark Haines2015-01-261-2/+5
| | | | | | 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.
* Replace hs.parse_roomid with RoomID.from_stringMark Haines2015-01-231-2/+0
|
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-7/+7
|
* PEP8 and pyflakes warningsKegan Dougal2015-01-071-1/+3
|
* SYN-154: Tweak how the m.room.create check is done.Kegan Dougal2015-01-071-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 Dougal2015-01-071-3/+5
| | | | | | 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.
* Merge pull request #28 from matrix-org/erikj-perfMark Haines2015-01-061-8/+5
|\ | | | | Database performance improvements.
| * Add RoomMemberStore.get_users_in_room, so that we can get the list of joined ↵Erik Johnston2015-01-061-8/+5
| | | | | | | | users without having to retrieve the full events
* | Update copyright noticesMark Haines2015-01-061-1/+1
|/
* Set a state_key for the topic and room name, otherwise they won't be treated ↵Mark Haines2014-12-191-0/+2
| | | | as room state
* Set display name when joining via aliasMark Haines2014-12-191-0/+5
|
* s/user_id/sender/Mark Haines2014-12-191-1/+1
|
* Kill off synapse.api.events.*Erik Johnston2014-12-161-16/+12
|
* Rename MessageHandler.handle_event. Add a few comments.Erik Johnston2014-12-151-4/+4
|
* Get current member state from current_state snapshot. Fix leave test.Erik Johnston2014-12-151-3/+3
|
* Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-151-0/+7
|\ | | | | | | | | Conflicts: tests/handlers/test_room.py
| * Add a 'user_left_room' distributor signal analogous to 'user_joined_room'Paul "LeoNerd" Evans2014-12-111-0/+7
| |
* | .from_string() no longer takes a HSErik Johnston2014-12-101-2/+2
| |
* | Try and figure out how and why signatures are being changed.Erik Johnston2014-12-101-5/+2
| |
* | PEP8Erik Johnston2014-12-091-1/+1
| |
* | Fix joining from an inviteErik Johnston2014-12-091-13/+3
| |
* | More bug fixesErik Johnston2014-12-081-3/+8
| |
* | More bug fixesErik Johnston2014-12-081-6/+1
| |
* | More bug fixesErik Johnston2014-12-081-2/+2
| |
* | Convert rest and handlers to use new event structureErik Johnston2014-12-041-77/+53
| |
* | Begin converting things to use the new Event structureErik Johnston2014-12-041-0/+1
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-031-1/+5
|\|
| * Squash room_ids list to a set() to remove duplicates - with TODO marker as I ↵Paul "LeoNerd" Evans2014-12-021-1/+5
| | | | | | | | have no idea /why/ the dups are happening in the first place
* | Change DomainSpecificString so that it doesn't use a HomeServer objectErik Johnston2014-12-021-8/+11
|/
* Fix pep8 codestyle warningsMark Haines2014-11-201-2/+3
|
* Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵Mark Haines2014-11-201-2/+2
| | | | because they don't interact well with the logging contexts
* Don't add a 'prev' key to m.room.member messagesErik Johnston2014-11-191-3/+0
|
* SYN-149: Enable auth for events added during room creation since they should ↵Mark Haines2014-11-181-1/+1
| | | | pass auth checks
* SYN-149: Send join event immediately after the room create eventMark Haines2014-11-181-24/+26
|
* Split out sending the room alias events from creating the alias so that we ↵Mark Haines2014-11-181-7/+10
| | | | can do them in the right point when creating a room
* SYN-148: Add the alias after creating the roomMark Haines2014-11-171-9/+9
|
* Fix bugs with invites/joins across federatiom.Erik Johnston2014-11-121-2/+8
| | | | | Both in terms of auth and not trying to fetch missing PDUs for invites, joins etc.
* Implement invite part of invite join danceErik Johnston2014-11-071-20/+12
|
* Amalgamate all power levels.Erik Johnston2014-11-061-36/+16
| | | | | Remove concept of reqired power levels, something similiar can be done using the new power level event.
* Implement new replace_state and changed prev_stateErik Johnston2014-11-061-12/+4
| | | | | `prev_state` is now a list of previous state ids, similiar to prev_events. `replace_state` now points to what we think was replaced.
* Fix room handler testsErik Johnston2014-11-041-1/+0
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-10-301-20/+6
|\ | | | | | | federation_authorization
| * Construct a source-specific 'SourcePaginationConfig' to pass into ↵Paul "LeoNerd" Evans2014-10-291-15/+6
| | | | | | | | get_pagination_rows; meaning each source doesn't have to care about its own name any more
| * Remove duplicate join_event from create_roomMark Haines2014-10-271-5/+0
| |
* | Begin making auth use event.old_state_eventsErik Johnston2014-10-151-10/+9
|/
* Merge branch 'deletions' of github.com:matrix-org/synapse into developErik Johnston2014-09-251-0/+1
|\
| * Rename deletions to redactionsErik Johnston2014-09-241-1/+1
| |
| * SYN-12: Implement auth for deletion by adding a 'delete_level' on the ops ↵Erik Johnston2014-09-231-0/+1
| | | | | | | | | | | | levels event SYN-12 # comment Auth has been added.
* | Don't set the room name to be the room alias on room creation if the client ↵Erik Johnston2014-09-241-11/+0
|/ | | | didn't supply a name
* Correctly handle the 'age' key in events and pdusErik Johnston2014-09-151-1/+1
|
* Added num_joined_users key to /publicRooms for each room. Show this ↵Kegan Dougal2014-09-081-0/+6
| | | | information in the webclient.
* Add support for inviting people when you create a roomErik Johnston2014-09-061-0/+26
|
* Generate m.room.aliases event when the HS creates a room aliasErik Johnston2014-09-051-5/+7
|