summary refs log tree commit diff
path: root/synapse/handlers/room_member.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Add config option to forget rooms automatically when users leave them (#15224)Sean Quah2023-05-031-19/+154
* Experimental support for MSC3970: per-device transaction IDs (#15318)Quentin Gliech2023-04-251-7/+26
* Move Spam Checker callbacks to a dedicated file (#15453)Andrew Morgan2023-04-181-9/+13
* Fix joining rooms you have been unbanned from (#15323)DeepBlueV7.X2023-03-291-52/+57
* Add support for knocking to workers. (#15133)Dirk Klimpel2023-03-021-1/+3
* Batch up storing state groups when creating new room (#14918)Shay2023-02-241-3/+10
* Faster joins: don't stall when a user joins during a fast join (#14606)Mathieu Velten2023-02-101-33/+85
* Avoid fetching unused account data in sync. (#14973)Patrick Cloke2023-02-101-1/+1
* Make `handle_new_client_event` throws `PartialStateConflictError` (#14665)Mathieu Velten2022-12-151-64/+104
* Move `StateFilter` to `synapse.types` (#14668)David Robertson2022-12-121-1/+1
* Add query parameter `ts` to allow appservices set the `origin_server_ts` for ...lukasdenk2022-10-031-0/+13
* Fix `get_users_in_room` mis-use in `transfer_room_state_on_room_upgrade` (#13...Eric Eastwood2022-09-301-2/+2
* Persist CreateRoom events to DB in a batch (#13800)Shay2022-09-281-5/+6
* Deduplicate `is_server_notices_room`. (#13780)reivilibre2022-09-141-9/+1
* Drop support for calling `/_matrix/client/v3/rooms/{roomId}/invite` without a...Jacek Kuśnierz2022-08-311-3/+3
* Fix that user cannot `/forget` rooms after the last member has left (#13546)Dirk Klimpel2022-08-301-2/+5
* Directly lookup local membership instead of getting all members in a room fir...Eric Eastwood2022-08-241-2/+4
* Fix that sending server notices fail if avatar is `None` (#13566)Dirk Klimpel2022-08-231-1/+1
* `synapse.api.auth.Auth` cleanup: make permission-related methods use `Request...Quentin Gliech2022-08-221-5/+5
* Add some tracing spans to give insight into local joins (#13439)Shay2022-08-031-27/+30
* Make minor clarifications to the error messages given when we fail to join a ...reivilibre2022-07-271-1/+5
* Rate limit joins per-room (#13276)David Robertson2022-07-191-0/+37
* Use state before join to determine if we `_should_perform_remote_join` (#13270)David Robertson2022-07-151-15/+20
* Optimise room creation event lookups part 2 (#13224)Nick Mills-Barrett2022-07-131-7/+36
* Uniformize spam-checker API, part 5: expand other spam-checker callbacks to r...David Teller2022-07-111-7/+20
* Fix application service not being able to join remote federated room without ...Eric Eastwood2022-07-051-9/+23
* Rate limiting invites per issuer (#13125)David Teller2022-06-301-2/+18
* Reduce the duplication of code that invokes the rate limiter. (#13070)reivilibre2022-06-161-27/+3
* Uniformize spam-checker API, part 4: port other spam-checker callbacks to ret...David Teller2022-06-131-13/+19
* Reduce the amount of state we pull from the DB (#12811)Erik Johnston2022-06-061-2/+14
* Wait for lazy join to complete when getting current state (#12872)Erik Johnston2022-06-011-1/+4
* Remove user-visible groups/communities code (#12553)Patrick Cloke2022-05-251-11/+0
* Update EventContext `get_current_event_ids` and `get_prev_event_ids` to accep...Shay2022-05-201-2/+7
* Refactor and convert `Linearizer` to async (#12357)Sean Quah2022-04-051-2/+2
* Remove unused `auth_event_ids` argument plumbing (#12304)Eric Eastwood2022-03-291-19/+0
* Refactor `create_new_client_event` to use a new parameter, `state_event_ids`,...Eric Eastwood2022-03-251-0/+31
* Avoid generating state groups for local out-of-band leaves (#12154)Richard van der Hoff2022-03-031-1/+1
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
* Limit concurrent AS joins (#11996)Brendan Abolivier2022-02-161-19/+27
* Fix historical messages backfilling in random order on remote homeservers (MS...Eric Eastwood2022-02-071-2/+20
* Add a ratelimiter for 3pid invite (#11892)Brendan Abolivier2022-02-031-1/+8
* Configurable limits on avatars (#11846)Brendan Abolivier2022-01-281-0/+6
* Add type hints to `synapse/storage/databases/main/room.py` (#11575)Sean Quah2021-12-151-2/+4
* Allow events to be created with no `prev_events` (MSC2716) (#11243)Eric Eastwood2021-12-101-1/+2
* Prevent historical state from being pushed to an application service via `/tr...Eric Eastwood2021-11-181-0/+15
* Add remaining type hints to `synapse.events`. (#11098)Patrick Cloke2021-11-021-1/+3
* Remove the deprecated BaseHandler. (#11005)Patrick Cloke2021-10-081-6/+2
* Add a spamchecker method to allow or deny 3pid invites (#10894)Brendan Abolivier2021-10-061-0/+12
* Require direct references to configuration variables. (#10985)Patrick Cloke2021-10-061-2/+5
* Add a spamchecker callback to allow or deny room joins (#10910)Brendan Abolivier2021-10-061-0/+31
* Use direct references for configuration variables (part 7). (#10959)Patrick Cloke2021-10-041-1/+1
* Strip "join_authorised_via_users_server" from join events which do not need i...Patrick Cloke2021-09-301-1/+9
* Use direct references for configuration variables (part 6). (#10916)Patrick Cloke2021-09-291-7/+7
* Use direct references for configuration variables (part 5). (#10897)Patrick Cloke2021-09-241-1/+1
* Allow sending a membership event to unban a user (#10807)Aaron Raimist2021-09-211-1/+1
* Require type hints in the handlers module. (#10831)Patrick Cloke2021-09-201-4/+4
* Move `maybe_kick_guest_users` out of `BaseHandler` (#10744)Richard van der Hoff2021-09-061-6/+59
* Enforce the max length for per-room display names / avatar URLs. (#10654)Azrenbeth2021-08-231-1/+16
* Send unstable-prefixed room_type in store-invite IS API requests (#10435)Michael Telatynski2021-08-041-1/+12
* Update the MSC3083 support to verify if joins are from an authorized server. ...Patrick Cloke2021-07-261-8/+167
* Add endpoints for backfilling history (MSC2716) (#9247)Eric Eastwood2021-06-221-0/+90
* Remove the experimental flag for knocking and use stable prefixes / endpoints...Patrick Cloke2021-06-151-4/+1
* Implement knock feature (#6739)Sorunome2021-06-091-31/+166
* Refactor checking restricted join rules (#10007)Patrick Cloke2021-05-181-15/+5
* Correctly ratelimit invites when creating a room (#9968)Brendan Abolivier2021-05-121-0/+25
* Add missing type hints to handlers and fix a Spam Checker type hint. (#9896)Patrick Cloke2021-04-291-1/+1
* Check for space membership during a remote join of a restricted room (#9814)Patrick Cloke2021-04-231-59/+3
* Revert "Check for space membership during a remote join of a restricted room....Patrick Cloke2021-04-141-3/+59
* Check for space membership during a remote join of a restricted room. (#9763)Patrick Cloke2021-04-141-59/+3
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* MSC3083: Check for space membership during a local join of restricted rooms. ...Patrick Cloke2021-04-081-1/+74
* Make RateLimiter class check for ratelimit overrides (#9711)Erik Johnston2021-03-301-8/+15
* Add type hints to the room member handler. (#9631)Patrick Cloke2021-03-171-0/+4
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-8/+19
* Honour ratelimit flag for application services for invite ratelimiting (#9302)Erik Johnston2021-02-031-3/+9
* Ratelimit invites by room and target user (#9258)Erik Johnston2021-01-291-2/+23
* Allow moving account data and receipts streams off master (#9104)Erik Johnston2021-01-181-2/+5
* Allow spam-checker modules to be provide async methods. (#8890)David Teller2020-12-111-1/+1
* Don't ratelimit autojoining of rooms (#8921)Erik Johnston2020-12-111-10/+13
* Allow per-room profile to be used for server notice user (#8799)Mathieu Velten2020-11-301-1/+9
* Speed up remote invite rejection database call (#8815)Andrew Morgan2020-11-251-5/+11
* Add admin API for logging in as a user (#8617)Erik Johnston2020-11-171-1/+4
* Generalise _locally_reject_invite (#8751)Andrew Morgan2020-11-161-17/+19
* Optimise createRoom with multiple invites (#8559)Richard van der Hoff2020-10-291-2/+6
* Simplify `_locally_reject_invite`Richard van der Hoff2020-10-131-43/+15
* Remove redundant `token_id` parameter to create_eventRichard van der Hoff2020-10-131-1/+0
* Fix message duplication if something goes wrong after persisting the event (#...Erik Johnston2020-10-131-1/+12
* Remove the deprecated Handlers object (#8494)Patrick Cloke2020-10-091-3/+3
* De-duplicate duplicate handlingRichard van der Hoff2020-10-051-20/+9
* Remove stream ordering from Metadata dict (#8452)Richard van der Hoff2020-10-051-6/+7
* Do not assume that account data is of the correct form. (#8454)Patrick Cloke2020-10-051-3/+3
* Enable mypy checking for unreachable code and fix instances. (#8432)Patrick Cloke2020-10-011-1/+1
* Switch metaclass initialization to python 3-compatible syntax (#8326)Jonathan de Jong2020-09-161-3/+1
* Add experimental support for sharding event persister. Again. (#8294)Erik Johnston2020-09-141-7/+0
* Remove some unused distributor signals (#8216)Patrick Cloke2020-09-091-38/+4
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
* Revert "Add experimental support for sharding event persister. (#8170)" (#8242)Brendan Abolivier2020-09-041-0/+7
* Add experimental support for sharding event persister. (#8170)Erik Johnston2020-09-021-7/+0
* Convert additional databases to async/await part 2 (#8200)Patrick Cloke2020-09-011-10/+2
* Do not propagate profile changes of shadow-banned users into rooms. (#8157)Patrick Cloke2020-08-261-1/+1
* Merge tag 'v1.19.1rc1' into developBrendan Abolivier2020-08-251-21/+25
|\
| * Fix join ratelimiter breaking profile updates and idempotency (#8153)Brendan Abolivier2020-08-241-21/+25
| * Do not apply ratelimiting on joins to appservices (#8139)Will Hunt2020-08-241-6/+8
* | Add type hints for state. (#8140)Patrick Cloke2020-08-241-8/+12
* | Do not apply ratelimiting on joins to appservices (#8139)Will Hunt2020-08-211-6/+8
* | Stop shadow-banned users from sending invites. (#8095)Patrick Cloke2020-08-201-2/+60
* | Convert events worker database to async/await. (#8071)Patrick Cloke2020-08-181-1/+1
|/
* Add type hints to handlers.message and events.builder (#8067)Erik Johnston2020-08-121-4/+8
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/add_rate_l...Erik Johnston2020-07-311-10/+27
|\
| * Fix invite rejection when we have no forward-extremeties (#7980)Richard van der Hoff2020-07-301-8/+21
| * Option to allow server admins to join complex rooms (#7902)lugino-emeritus2020-07-281-2/+6
* | Add ratelimiting on joinsErik Johnston2020-07-311-2/+35
|/
* `update_membership` declaration: now always returns an event id. (#7809)Richard van der Hoff2020-07-091-4/+4
* Fix `can only concatenate list (not "tuple") to list` exception (#7810)Richard van der Hoff2020-07-091-1/+1
* Generate real events when we reject invites (#7804)Richard van der Hoff2020-07-091-61/+133
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-4/+3
* Add option to move event persistence off master (#7517)Erik Johnston2020-05-221-8/+31
* Add ability to wait for replication streams (#7542)Erik Johnston2020-05-221-24/+41
* Add type hints to room member handlers (#7513)Patrick Cloke2020-05-151-132/+152
* Update the room member handler to use async/await. (#7507)Patrick Cloke2020-05-151-62/+49
* Convert federation handler to async/await. (#7459)Patrick Cloke2020-05-111-3/+2
* async/await is_server_admin (#7363)Andrew Morgan2020-05-011-68/+59
* Transfer alias mappings when joining an upgraded room (#6946)Andrew Morgan2020-03-301-0/+3
* make FederationHandler.do_remotely_reject_invite asyncRichard van der Hoff2020-02-031-2/+4
* make FederationHandler.do_invite_join asyncRichard van der Hoff2020-02-031-2/+4
* Add `local_current_membership` table (#6655)Erik Johnston2020-01-151-1/+1
* Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashesRichard van der Hoff2020-01-061-6/+5
|\
| * Remove unused hashes and depths from _update_membership paramsRichard van der Hoff2020-01-061-13/+4
| * Remove unused hashes and depths from create_event paramsRichard van der Hoff2020-01-061-1/+7
| * rename get_prev_events_for_room to get_prev_events_and_hashes_for_roomRichard van der Hoff2020-01-061-1/+3
* | Fix some test failures when frozen_dicts are enabled (#6642)Richard van der Hoff2020-01-061-0/+2
|/
* Change EventContext to use the Storage class (#6564)Erik Johnston2019-12-201-2/+2
* Propagate reason in remotely rejected invitesErik Johnston2019-11-281-4/+9
* Re-add docstring, with caveats detailedAndrew Morgan2019-11-041-1/+1
* Transfer upgraded rooms on groupsAndrew Morgan2019-11-041-0/+9
* Depublish a room from the public rooms list when it is upgraded (#6232)Andrew Morgan2019-11-011-27/+54
* Update black to 19.10b0 (#6304)Amber Brown2019-11-011-16/+19
* Move tag/push rules room upgrade checking ealier (#6155)Andrew Morgan2019-10-101-18/+44
* Fix yields and copy instead of move push rules on room upgrade (#6144)Andrew Morgan2019-10-021-2/+2
* Move lookup-related functions from RoomMemberHandler to IdentityHandler (#5978)Andrew Morgan2019-09-271-364/+6
* Use the federation blacklist for requests to untrusted Identity Servers (#6000)Andrew Morgan2019-09-231-1/+6
* Return timeout error to user for identity server calls (#6073)Andrew Morgan2019-09-231-9/+23
* v2 3PID Invites (part of MSC2140) (#5979)Andrew Morgan2019-09-171-23/+81
* Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976)Andrew Morgan2019-09-111-12/+166
* Add note about extra arg to send_membership_event, remove arg in remote_rejec...Andrew Morgan2019-09-111-10/+2
* code cleanupsAndrew Morgan2019-09-031-7/+2
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-1/+1
* Revert "Use the v2 lookup API for 3PID invites (#5897)" (#5937)Andrew Morgan2019-08-301-119/+9
* Use the v2 lookup API for 3PID invites (#5897)Andrew Morgan2019-08-281-9/+119
* Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-4/+80
* Replace returnValue with return (#5736)Amber Brown2019-07-231-21/+21
* Merge branch 'develop' into babolivier/invite-jsonBrendan Abolivier2019-07-081-39/+1
|\
| * Remove support for invite_3pid_guest. (#5625)Richard van der Hoff2019-07-051-39/+0
| * Only ratelimit when sending the emailBrendan Abolivier2019-06-281-1/+2
| * Don't update the ratelimiter before sending a 3PID inviteBrendan Abolivier2019-06-281-1/+1
* | LintBrendan Abolivier2019-07-081-1/+2
* | Use application/json when querying the IS's /store-invite endpointBrendan Abolivier2019-07-081-4/+17
|/
* Run Black. (#5482)Amber Brown2019-06-201-189/+115
* Add third party rules hook for 3PID invitesBrendan Abolivier2019-06-171-0/+10
* fix mapping of return values for get_or_register_3pid_guest (#5177)bytepoets-blo2019-05-171-1/+1
* Add option to disable per-room profilesBrendan Abolivier2019-05-161-0/+9
* Rate limit earlyErik Johnston2019-05-021-2/+3
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/ratelimit_...Erik Johnston2019-04-261-0/+5
|\
| * Add config option to block users from looking up 3PIDs (#5010)Brendan Abolivier2019-04-041-0/+5
* | Ratelimit 3pid invitesErik Johnston2019-04-261-0/+10
|/
* Prevent kicking users who aren't in the room (#4999)Andrew Morgan2019-04-041-0/+9
* Use flagsErik Johnston2019-03-201-0/+6
* Transfer local user's push rules on room upgrade (#4838)Andrew Morgan2019-03-121-0/+4
* Fix registration on workers (#4682)Erik Johnston2019-02-201-1/+1
* Remove event ID usage when checking if new roomErik Johnston2019-01-291-1/+2
* Change return syntax in doc stringAndrew Morgan2019-01-281-1/+1
* Reuse predecessor methodAndrew Morgan2019-01-281-12/+8
* FixesAndrew Morgan2019-01-251-39/+39
* Clean up direct_rooms accessAndrew Morgan2019-01-251-3/+3
* Use python magicAndrew Morgan2019-01-251-2/+1
* Destructure account data tuple before useAndrew Morgan2019-01-251-3/+3
* Remove unnecessary null checkAndrew Morgan2019-01-251-7/+6
* Move room_tag declaration to be closer to its useAndrew Morgan2019-01-251-4/+5
* Move tag and direct state copying into separate functionAndrew Morgan2019-01-251-43/+63
* lintAndrew Morgan2019-01-221-1/+3
* Prevent duplicate room IDs in m.directAndrew Morgan2019-01-221-10/+9
* Fix commentsAndrew Morgan2019-01-221-2/+2
* tags, m.direct copying over correctlyAndrew Morgan2019-01-221-2/+49
* Fix typosAndrew Morgan2019-01-221-8/+8
* Use directory server for room joins (#3899)Richard van der Hoff2018-09-181-0/+5
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_s...Erik Johnston2018-08-201-1/+1
|\
| * Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
* | Revert spurious changeErik Johnston2018-08-201-2/+2
* | Choose state algorithm based on room versionErik Johnston2018-08-091-2/+3
|/
* Merge branch 'develop' of github.com:matrix-org/synapse into t3chguy/default_...Michael Telatynski2018-07-241-117/+343
|\
| * Use new gettersErik Johnston2018-07-231-3/+6
| * run isortAmber Brown2018-07-091-8/+6
| * Let users leave the server notice room after joiningRichard van der Hoff2018-05-251-10/+14
| * custom error code for not leaving server notices roomRichard van der Hoff2018-05-221-0/+1
| * Make sure we reject attempts to invite the notices userRichard van der Hoff2018-05-181-0/+7
| * fix missing yield for server_notices_roomRichard van der Hoff2018-05-171-3/+4
| * Infrastructure for a server notices roomRichard van der Hoff2018-05-171-4/+36
| * Avoid creating events with huge numbers of prev_eventsRichard van der Hoff2018-04-161-4/+9
| * Return a 404 rather than a 500 on rejoining empty roomsRichard van der Hoff2018-04-091-0/+8
| * _remote_join and co take a requesterErik Johnston2018-03-131-4/+4
| * Merge pull request #2987 from matrix-org/erikj/split_room_member_handlerErik Johnston2018-03-131-98/+185
| |\
| | * Add missing param to docstringsErik Johnston2018-03-131-0/+3
| | * Correct import orderErik Johnston2018-03-131-3/+3
| | * Move user_*_room distributor stuff to master classErik Johnston2018-03-131-5/+50
| | * Split RoomMemberHandler into base and master classErik Johnston2018-03-131-96/+135
| * | Merge pull request #2981 from matrix-org/erikj/factor_remote_leaveErik Johnston2018-03-131-22/+54
| |\|
| | * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/factor_rem...Erik Johnston2018-03-131-14/+10
| | |\
| | * | Add docstringErik Johnston2018-03-131-0/+26
| | * | Factor out _remote_reject_invite in RoomMemberErik Johnston2018-03-131-22/+28
| * | | Merge pull request #2979 from matrix-org/erikj/no_handlersErik Johnston2018-03-131-2/+1
| |\ \ \ | | |_|/ | |/| |
| | * | Split replication layer into twoErik Johnston2018-03-131-2/+1
| | |/
| * | Merge pull request #2980 from matrix-org/erikj/rm_privErik Johnston2018-03-131-7/+7
| |\ \
| | * | Make functions private that can beErik Johnston2018-03-131-7/+7
| | |/
| * / Refactor get_or_register_3pid_guestErik Johnston2018-03-131-7/+3
| |/
| * Add missing yield during 3pid signature checksErik Johnston2018-03-021-1/+1
| * Move back to hs.is_mineErik Johnston2018-03-011-7/+6
| * Move RoomMemberHandler out of HandlersErik Johnston2018-03-011-23/+31
| * Update copyrightErik Johnston2018-02-061-0/+1
| * Update places where we create eventsErik Johnston2018-02-051-9/+11
| * Copy dict in update_membership tooErik Johnston2017-12-071-0/+4
| * Merge pull request #2466 from matrix-org/erikj/groups_mergedErik Johnston2017-10-111-1/+3
| |\
| | * Merge branch 'develop' into erikj/groups_mergedDavid Baker2017-10-021-0/+22
| | |\
| | * | Split out profile handler to fix testsErik Johnston2017-08-251-1/+3
| * | | Spam checking: add the invitee to user_may_inviteDavid Baker2017-10-051-1/+1
| * | | pass room id tooDavid Baker2017-10-031-1/+3
| * | | Federation was passing strings anywayDavid Baker2017-10-031-1/+1
| * | | this shouldn't be debugDavid Baker2017-10-031-2/+2
| * | | better loggingDavid Baker2017-10-031-4/+9
| * | | Skip spam check for admin usersDavid Baker2017-10-031-8/+8
| * | | Allow spam checker to reject invites tooDavid Baker2017-10-031-6/+14
| | |/ | |/|
| * | Add a config option to block all room invites (#2457)Richard van der Hoff2017-09-191-0/+22
| |/
* / if inviter_display_name == ""||None then default to inviter MXIDMichael Telatynski2018-06-131-0/+4
|/
* Handle all cases of sending membership eventsErik Johnston2017-06-191-0/+5
* Add shutdown room APIErik Johnston2017-06-191-0/+5
* Speed up get_joined_hostsErik Johnston2017-05-161-1/+2
* Add more granular event send metricsErik Johnston2017-05-021-0/+1
* Broaden the conditions for locally_rejecting invitesRichard van der Hoff2017-04-211-1/+7
* Remove redundant functionRichard van der Hoff2017-04-211-10/+5
* Allow forgetting rooms you're banned fromDavid Baker2017-02-151-1/+3
* Add missing None checkErik Johnston2017-01-111-5/+6
* Merge pull request #1787 from matrix-org/erikj/linearize_memberErik Johnston2017-01-101-4/+15
|\
| * Linearize updates to membership via PUT /state/Erik Johnston2017-01-091-4/+15
* | Name linearizer's for better logsErik Johnston2017-01-091-1/+1
|/
* handlers/room_member: fix guest access check when joining roomsPatrik Oldsberg2017-01-061-4/+6
* Fix membership changes to be idempotentMark Haines2016-09-021-0/+6
* Correctly handle the difference between prev and current stateErik Johnston2016-08-311-3/+3
* Replace context.current_state with context.current_state_idsErik Johnston2016-08-251-40/+84
* Pass through user-supplied content in /join/$room_idKegan Dougal2016-08-231-2/+12
* Only process one local membership event per room at a timeErik Johnston2016-08-121-1/+1
* Add `create_requester` functionRichard van der Hoff2016-07-261-11/+9