Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Merge Synapse v1.41.1 #102

Merged
merged 698 commits into from
Sep 7, 2021
Merged
Changes from 1 commit
Commits
Show all changes
698 commits
Select commit Hold shift + click to select a range
07e0992
Make GHA config more efficient (#10383)
richvdh Jul 14, 2021
c82eb02
Set section for prerelease debs (#10391)
richvdh Jul 14, 2021
28ffff7
Instructions on installing RC debs (#10396)
richvdh Jul 14, 2021
0ae95b3
doc: Add delegation example to the caddy reverse proxy section (#10368)
moritzdietz Jul 14, 2021
7695ca0
Fix a number of logged errors caused by remote servers being down. (#…
erikjohnston Jul 15, 2021
c7603af
Allow providing credentials to `http_proxy` (#10360)
dklimpel Jul 15, 2021
bf72d10
Use inline type hints in various other places (in `synapse/`) (#10380)
ShadowJonathan Jul 15, 2021
5ecad4e
Update the logcontext doc (#10353)
babolivier Jul 15, 2021
ac5c221
Stagger send presence to remotes (#10398)
erikjohnston Jul 15, 2021
c141455
Docs: Use something other than the document name to describe a page (…
anoadragon453 Jul 15, 2021
23a90a6
Updating install prerequisites for newer macOS & ARM Macs. (#9971)
LukeWalsh Jul 15, 2021
6a60068
Add tests to characterise the current behaviour of R30 phone-home met…
reivilibre Jul 15, 2021
3fffb71
Make deprecation notice of the spam checker doc more obvious (#10395)
babolivier Jul 15, 2021
9f49702
Merge branch 'master' into develop
babolivier Jul 15, 2021
3acf85c
Reduce likelihood of Postgres table scanning `state_groups_state`. (#…
erikjohnston Jul 15, 2021
bdfde6d
Use inline type hints in `http/federation/`, `storage/` and `util/` (…
ShadowJonathan Jul 15, 2021
d427f64
Do not include signatures/hashes in make_{join,leave,knock} responses…
clokep Jul 16, 2021
36dc154
Add a module type for account validity (#9884)
babolivier Jul 16, 2021
98aec1c
Use inline type hints in `handlers/` and `rest/`. (#10382)
ShadowJonathan Jul 16, 2021
3234529
One last inline type hint (for the whole repo) (#10418)
ShadowJonathan Jul 16, 2021
7387d6f
Remove unused `events_by_room` (#10421)
MadLittleMods Jul 19, 2021
95e47b2
[pyupgrade] `synapse/` (#10348)
ShadowJonathan Jul 19, 2021
4e34041
Add a new version of the R30 phone-home metric, which removes a false…
reivilibre Jul 19, 2021
eebfd02
Factorise `get_datastore` calls in phone_stats_home. (#10427)
reivilibre Jul 19, 2021
f3ac9c6
Fix exception when failing to get remote room list (#10414)
erikjohnston Jul 20, 2021
a743bf4
Port the ThirdPartyEventRules module interface to the new generic int…
babolivier Jul 20, 2021
97c8ae9
Add a github actions job recording success of other jobs. (#10430)
richvdh Jul 20, 2021
83f1ccf
Fix dropping locks on shut down
erikjohnston Jul 20, 2021
794371b
Revert "Fix dropping locks on shut down"
erikjohnston Jul 20, 2021
12623cf
1.39.0rc1
anoadragon453 Jul 20, 2021
d30a657
changelog word fixes
anoadragon453 Jul 20, 2021
c5205e4
fix typo in changelog
anoadragon453 Jul 20, 2021
69226c1
MSC3244 room capabilities implementation (#10283)
t3chguy Jul 20, 2021
541e58e
Update account validity feature line in changelog
anoadragon453 Jul 20, 2021
96e63ec
Combine some changelog lines in the documentation section
anoadragon453 Jul 20, 2021
54389d5
Fix dropping locks on shut down (#10433)
erikjohnston Jul 20, 2021
f2501f1
Incorporate changelog of #10433
anoadragon453 Jul 20, 2021
e009d2e
1.39.0rc1
anoadragon453 Jul 20, 2021
b181dc4
Merge tag 'v1.39.0rc1' into develop
anoadragon453 Jul 20, 2021
2d89c66
Switch to `chunk` events so we can auth via power_levels (MSC2716) (#…
MadLittleMods Jul 21, 2021
c650999
Move the docker image build to Github Actions (#10416)
richvdh Jul 21, 2021
5db1186
Add a return type to parse_string. (#10438)
clokep Jul 21, 2021
b2629e7
Merge remote-tracking branch 'origin/release-v1.39' into develop
richvdh Jul 21, 2021
d15e72e
Update the notification email subject when invited to a space. (#10426)
clokep Jul 21, 2021
5b68816
Fix the hierarchy of OpenID providers in the docs. (#10445)
clokep Jul 21, 2021
590cc4e
Add type hints to additional servlet functions (#10437)
clokep Jul 21, 2021
8ae0bdc
Drop xenial-support hacks (#10429)
richvdh Jul 21, 2021
f1347bc
Fix the tests-done Github Actions job (#10444)
richvdh Jul 22, 2021
5e2df47
Cancel redundant GHA workflows (#10451)
richvdh Jul 22, 2021
d518b05
Move dev/ docs to development/ (#10453)
MadLittleMods Jul 22, 2021
d8324b8
Fix a handful of type annotations. (#10446)
richvdh Jul 22, 2021
38b346a
Replace `or_ignore` in `simple_insert` with `simple_upsert` (#10442)
erikjohnston Jul 22, 2021
89c4ca8
Add `creation_ts` to list users admin API (#10448)
dklimpel Jul 22, 2021
7da24b9
Always send device_one_time_keys_count (#10457)
dbkr Jul 22, 2021
283bb5c
1.38.1
erikjohnston Jul 22, 2021
4565063
Merge commit '7da24b975dfb10c277cf963dfddb88f55b1ca598' into release-…
erikjohnston Jul 22, 2021
f76f8c1
1.39.0rc2
erikjohnston Jul 22, 2021
cd5fcd2
Disable msc2716 until Complement update is merged (#10463)
MadLittleMods Jul 22, 2021
4c3fdfc
Fix an error in the docker workflow (#10461)
richvdh Jul 22, 2021
016f085
Merge tag 'v1.38.1'
richvdh Jul 22, 2021
683deee
Merge branch 'master' into develop
erikjohnston Jul 23, 2021
c39a417
Merge tag 'v1.39.0rc2' into develop
erikjohnston Jul 23, 2021
6e22756
Merge tag 'v1.38.1' into release-v1.39
erikjohnston Jul 23, 2021
ab82fd6
Merge branch 'release-v1.39' into develop
erikjohnston Jul 23, 2021
f22252d
Enable docker image caching for the deb build (#10431)
richvdh Jul 26, 2021
4fb92d9
Add type hints to synapse.federation.transport.client. (#10408)
clokep Jul 26, 2021
228decf
Update the MSC3083 support to verify if joins are from an authorized …
clokep Jul 26, 2021
b7186c6
Add type hints to state handler. (#10482)
clokep Jul 26, 2021
b3a757e
Support MSC2033: Device ID on whoami (#9918)
turt2live Jul 27, 2021
92a8822
Change release script to update debian changelog for RCs (#10465)
erikjohnston Jul 27, 2021
2476d53
Mitigate media repo XSSs on IE11. (#10468)
dkasak Jul 27, 2021
1394467
Use new go test running syntax for complement. (#10488)
clokep Jul 27, 2021
e16eab2
Add a PeriodicallyFlushingMemoryHandler to prevent logging silence (#…
reivilibre Jul 27, 2021
74d09a4
Always communicate device OTK counts to clients (#10485)
anoadragon453 Jul 27, 2021
10dcfae
Fix typo that causes R30v2 to actually be old R30 (#10486)
reivilibre Jul 27, 2021
31c6b30
Fix import of the default SAML mapping provider. (#10477)
jaywink Jul 27, 2021
076dead
allow specifying https:// proxy (#10411)
dklimpel Jul 27, 2021
5b22d5e
Fix `oldest_pdu_in_federation_staging` (#10455)
erikjohnston Jul 27, 2021
8e1febc
Support underscores (in addition to hyphens) for charset detection. (…
srividyut Jul 27, 2021
0489683
Document Complement dev usage (#10483)
MadLittleMods Jul 27, 2021
c3b0377
Support for MSC2285 (hidden read receipts) (#10413)
SimonBrandner Jul 28, 2021
752fe0c
Restricted rooms (MSC3083) should not have their allow key redacted. …
clokep Jul 28, 2021
9643dfd
improve typing annotations in CachedCall (#10450)
richvdh Jul 28, 2021
d9cb658
Fix up type hints for Twisted 21.7 (#10490)
richvdh Jul 28, 2021
5146e19
1.39.0rc3
erikjohnston Jul 28, 2021
2254e67
Fixup changelog
erikjohnston Jul 28, 2021
8c201c9
Merge tag 'v1.39.0rc3' into develop
erikjohnston Jul 28, 2021
d0b294a
Make historical events discoverable from backfill for servers without…
MadLittleMods Jul 28, 2021
858363d
Generics for `ObservableDeferred` (#10491)
richvdh Jul 28, 2021
db6e7f1
Fix backfilled events being rejected for no `state_groups` (#10439)
MadLittleMods Jul 29, 2021
5522a10
1.39.0
erikjohnston Jul 29, 2021
6449955
Fixup changelog
erikjohnston Jul 29, 2021
c36c277
Merge tag 'v1.39.0rc3'
erikjohnston Jul 29, 2021
f8c87c6
Merge branch 'master' into develop
erikjohnston Jul 29, 2021
3a541a7
Improve failover logic for MSC3083 restricted rooms. (#10447)
clokep Jul 29, 2021
a6e2c16
Merge tag 'v1.39.0'
erikjohnston Jul 29, 2021
65f5206
Merge remote-tracking branch 'origin/master' into develop
erikjohnston Jul 29, 2021
b7f7ca2
Remove shebang line from module files (#10415)
V02460 Jul 29, 2021
c167e09
Fix explicit assignment of PL 0 from being misinterpreted in rare cir…
reivilibre Jul 30, 2021
2afdb5c
Fix deb build script to set prerelease flag correctly (#10500)
richvdh Aug 1, 2021
ba5287f
Allow setting transaction limit for db connections (#10440)
hifi Aug 2, 2021
01d45fe
Prune inbound federation queues if they get too long (#10390)
erikjohnston Aug 2, 2021
fb086ed
Fix codestyle CI from #10440 (#10511)
reivilibre Aug 2, 2021
a6ea32a
Fix the `tests-done` github actions step, again (#10512)
richvdh Aug 2, 2021
2bae2c6
Add developer documentation to explain room DAG concepts like `outlie…
MadLittleMods Aug 3, 2021
a7baccc
Extend the release script to tag and create the releases. (#10496)
erikjohnston Aug 3, 2021
f4ac934
Revert use of PeriodicallyFlushingMemoryHandler by default (#10515)
reivilibre Aug 3, 2021
c856619
1.40.0rc1
erikjohnston Aug 3, 2021
c80ec5d
Fixup changelog
erikjohnston Aug 3, 2021
da6cd82
Fixup changelog
erikjohnston Aug 3, 2021
42225aa
Fixup changelog
erikjohnston Aug 3, 2021
6878e10
Fix release script URL (#10516)
erikjohnston Aug 3, 2021
903db99
Fix PeriodicallyFlushingMemoryHandler inhibiting application shutdown…
reivilibre Aug 3, 2021
dc46f12
Include room ID in ignored EDU log messages (#10507)
ilmari Aug 3, 2021
4b10880
Make sync response cache time configurable. (#10513)
richvdh Aug 3, 2021
951648f
Fix debian package triggers (#10481)
richvdh Aug 3, 2021
72935b7
Add warnings to ip_range_blacklist usage with proxies (#10129)
Kentokamoto Aug 3, 2021
c2000ab
Add `get_userinfo_by_id` method to `ModuleApi` (#9581)
jaywink Aug 4, 2021
11540be
Fix `could not serialize access` errors for `claim_e2e_one_time_keys`…
erikjohnston Aug 4, 2021
c37dad6
Improve event caching code (#10119)
erikjohnston Aug 4, 2021
e8a3e81
Don't fail on empty bodies when sending out read receipts (#10531)
babolivier Aug 4, 2021
02c2f63
1.40.0rc2
babolivier Aug 4, 2021
167335b
Fixup changelog
babolivier Aug 4, 2021
cc1cb0a
Fixup changelog
babolivier Aug 4, 2021
05111f8
Fixup changelog
babolivier Aug 4, 2021
684d19a
Add support for MSC2716 marker events (#10498)
MadLittleMods Aug 4, 2021
9db24cc
Send unstable-prefixed room_type in store-invite IS API requests (#10…
t3chguy Aug 4, 2021
a36d77c
Merge tag 'v1.40.0rc2' into develop
erikjohnston Aug 5, 2021
e33f14e
Don't fail CI when lint-newfile job was skipped (#10529)
erikjohnston Aug 5, 2021
834cdc3
Add documentation for configuring a forward proxy. (#10443)
dklimpel Aug 5, 2021
a8a27b2
Only return an appservice protocol if it has a service providing it. …
Half-Shot Aug 5, 2021
3b354fa
Refactoring before implementing the updated spaces summary. (#10527)
clokep Aug 5, 2021
4578531
fix broken links in `upgrade.md` (#10543)
dklimpel Aug 5, 2021
0cb4274
Merge remote-tracking branch 'origin/release-v1.40' into develop
richvdh Aug 5, 2021
f5a368b
Mark all MSC2716 events as historical (#10537)
MadLittleMods Aug 6, 2021
74d7336
Add a setting to disable TLS for sending email (#10546)
richvdh Aug 6, 2021
f4ade97
Update the API response for spaces summary over federation. (#10530)
clokep Aug 6, 2021
1bebc0b
Clean up federation event auth code (#10539)
richvdh Aug 6, 2021
60f0534
Fix exceptions in logs when failing to get remote room list (#10541)
erikjohnston Aug 6, 2021
1de26b3
Convert Transaction and Edu object to attrs (#10542)
clokep Aug 6, 2021
0c246dd
Support MSC3289: Room version 8 (#10449)
clokep Aug 9, 2021
ad35b77
1.40.0rc3
babolivier Aug 9, 2021
f8e86b7
Merge branch 'release-v1.40' into develop
babolivier Aug 9, 2021
189c055
Moved homeserver documentation above reverse proxy examples (#10551)
warricksothr Aug 9, 2021
6b61deb
Do not remove `status_msg` when user going offline (#10550)
dklimpel Aug 9, 2021
7afb615
When redacting, keep event fields around that maintain the historical…
MadLittleMods Aug 10, 2021
9f7c038
1.40.0
babolivier Aug 10, 2021
b5de77c
Merge branch 'master' into develop
babolivier Aug 10, 2021
52bfa2d
Update contributing.md to warn against rebasing an open PR. (#10563)
H-Shay Aug 10, 2021
691593b
Fix an edge-case with invited rooms over federation in the spaces sum…
clokep Aug 10, 2021
8da9e3c
Move test_old_deps.sh to new ci dir
DMRobertson Aug 10, 2021
03fb99a
check-newsfragment: pass pr number explicitly
DMRobertson Aug 10, 2021
3d67b8c
Move sytest worker-blacklist to ci directory
DMRobertson Aug 10, 2021
c5988a8
Remove unused BUILDKITE_BRANCH env var
DMRobertson Aug 10, 2021
58e5da5
Remove buildkite from portdb CI tests
DMRobertson Aug 10, 2021
c0ebdfc
Kill off the .buildkite dir completely
DMRobertson Aug 10, 2021
fe1d0c8
Add local support for the new spaces summary endpoint (MSC2946) (#10549)
clokep Aug 10, 2021
b924a5c
Add changelog entry and signoff
DMRobertson Aug 10, 2021
8c654b7
Only return state events that the AS passed in via `state_events_at_s…
MadLittleMods Aug 10, 2021
339c391
support federation queries through http connect proxy (#10475)
dklimpel Aug 11, 2021
fab352a
Fix type hints in space summary tests. (#10575)
clokep Aug 11, 2021
2ae2a04
Clarify error message when joining a restricted room. (#10572)
clokep Aug 11, 2021
5acd8b5
Expire old spaces summary pagination sessions. (#10574)
clokep Aug 11, 2021
33ef86a
Rename ci to .ci
Aug 11, 2021
3ebb669
Allow requesting the summary of a space which is joinable. (#10580)
clokep Aug 11, 2021
6fcc3e0
Teach MANIFEST and tox about ci->.ci
Aug 11, 2021
cb5976e
set TOP in sytest containers
Aug 11, 2021
92a8e68
Missed another ci->.ci
Aug 11, 2021
915b37e
Admin API to delete media for a specific user (#10558)
dklimpel Aug 11, 2021
98a3355
Update the pagination parameter name based on MSC2946 review. (#10579)
clokep Aug 11, 2021
314a739
Also rename in lint.sh
Aug 12, 2021
74fcd5a
portdb also uses coverage, so provide $TOP there
Aug 12, 2021
8785289
Remove buildkite-era comment
Aug 12, 2021
4a76d01
Merge pull request #10573 from DMRobertson/dmr/goodbye-buildkite
Aug 12, 2021
d2ad397
Stop building a debian package for Groovy Gorilla (#10588)
Aug 12, 2021
c12b557
Fix a harmless exception when the staged events queue is empty. (#10592)
clokep Aug 13, 2021
c8d54be
Move /batch_send to /v2_alpha directory (MSC2716) (#10576)
MadLittleMods Aug 13, 2021
d1f43b7
Update the Synapse Grafana dashboard (#10570)
babolivier Aug 16, 2021
a3a7514
Handle string read receipt data (#10606)
SimonBrandner Aug 16, 2021
7de4451
Support federation in the new spaces summary API (MSC2946). (#10569)
clokep Aug 16, 2021
2d9ca4c
Clean up some logging in the federation event handler (#10591)
richvdh Aug 16, 2021
87b62f8
Split `synapse.federation.transport.server` into multiple files. (#10…
clokep Aug 16, 2021
0ace38b
Experimental support for MSC3266 Room Summary API. (#10394)
t3chguy Aug 16, 2021
5af83ef
Validate the max_rooms_per_space parameter to ensure it is non-negati…
clokep Aug 16, 2021
0db8cab
Update CONTRIBUTING.md to fix index links and SyTest instructions (#1…
reivilibre Aug 16, 2021
19e51b1
Manhole: wrap coroutines in `defer.ensureDeferred` automatically (#10…
reivilibre Aug 16, 2021
a933c2c
Add an admin API to check if a username is available (#10578)
Half-Shot Aug 17, 2021
ae2714c
Allow using several custom template directories (#10587)
babolivier Aug 17, 2021
58f0d97
update links to schema doc (#10620)
richvdh Aug 17, 2021
3bcd525
Allow to edit `external_ids` by Edit User admin API (#10598)
dklimpel Aug 17, 2021
b62eba7
Always list fallback key types in /sync (#10623)
anoadragon453 Aug 17, 2021
642a42e
Flatten the synapse.rest.client package (#10600)
reivilibre Aug 17, 2021
5f7b1e1
Make `PeriodicallyFlushingMemoryHandler` the default logging handler.…
reivilibre Aug 17, 2021
c4cf0c0
Attempt to pull from the legacy spaces summary API over federation. (…
clokep Aug 17, 2021
5639759
Centralise the custom template directory (#10596)
babolivier Aug 17, 2021
c8132f4
Build debs for bookworm (#10612)
richvdh Aug 17, 2021
84469bd
Remove the unused public_room_list_stream (#10565)
anoadragon453 Aug 17, 2021
703e3a9
Allow /createRoom to be run on workers (#10564)
anoadragon453 Aug 17, 2021
5581dd7
Allow modules to run looping call on all instances (#10638)
erikjohnston Aug 18, 2021
eea2873
fix broken link to upgrade notes (#10631)
richvdh Aug 18, 2021
3692f7f
Mount /_synapse/admin/v1/users/{userId}/media admin API on media work…
anoadragon453 Aug 18, 2021
49cb7ea
1.41.0rc1
erikjohnston Aug 18, 2021
e328d8f
Update changelog
erikjohnston Aug 18, 2021
b9c3558
Update docs/upgrade.md with new version
erikjohnston Aug 18, 2021
ce6819a
Fix typo in release notes (#10646)
jsma Aug 19, 2021
5cda75f
Set room version 8 as preferred for restricted rooms. (#10571)
clokep Aug 20, 2021
6f77a3d
1.41.0
erikjohnston Aug 24, 2021
f03cafb
Update changelog
erikjohnston Aug 24, 2021
8f98260
Fix incompatibility with Twisted < 21. (#10713)
richvdh Aug 27, 2021
52c7a51
Merge pull request from GHSA-3x4c-pq33-4w3q
reivilibre Aug 31, 2021
cb35df9
Merge pull request from GHSA-jj53-8fmw-f2w2
reivilibre Aug 31, 2021
9de3991
Merge tag 'v1.32.0' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
06690b1
Merge tag 'v1.32.2' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
8c26f16
Fix up unit tests (#10723)
richvdh Aug 31, 2021
a4c8a2f
1.41.1
richvdh Aug 31, 2021
1d4f5c3
Merge tag 'v1.33.0' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
72efaa2
Merge tag 'v1.33.2' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
05426e3
Merge tag 'v1.34.0' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
200ee12
Merge tag 'v1.35.0' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
5a33232
Merge tag 'v1.35.1' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
87e978b
Merge tag 'v1.36.0' into babolivier/dinsic_1.41.0
babolivier Aug 31, 2021
cba616d
Merge tag 'v1.37.0' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
6c9461e
Merge tag 'v1.37.1' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
fb6ff17
Merge tag 'v1.38.0' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
cc633a6
Merge tag 'v1.38.1' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
262007f
Merge tag 'v1.39.0' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
82af1a2
Merge tag 'v1.40.0' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
ea37bf9
Merge tag 'v1.41.0' into babolivier/dinsic_1.41.0
babolivier Sep 1, 2021
b781402
Add buildkite pipeline back
babolivier Sep 1, 2021
9621654
Remove buildkite pipeline
babolivier Sep 1, 2021
90e48ad
Lint
babolivier Sep 1, 2021
d76be83
Remove knock-related schema update
babolivier Sep 1, 2021
c0adacc
Remove account validity related schema update
babolivier Sep 1, 2021
21d5e8c
Fix cyclic dependency with the legacy account validity work
babolivier Sep 1, 2021
f711c59
Fix tests
babolivier Sep 1, 2021
925c2cd
Fix more tests
babolivier Sep 1, 2021
acfc9d4
Fix one more test
babolivier Sep 1, 2021
3f8e4e7
Don't ratelimit when admin updates profile
babolivier Sep 1, 2021
0a1eca9
Lint
babolivier Sep 1, 2021
332150e
Sample config
babolivier Sep 2, 2021
b3e050d
Lint
babolivier Sep 2, 2021
394cbd8
Load legacy modules in tests
babolivier Sep 2, 2021
660837f
Appease mypy
babolivier Sep 2, 2021
0eed68c
Lint
babolivier Sep 2, 2021
5426111
Fix test_rewritten_id_server
babolivier Sep 2, 2021
5eb9976
Import mock from unittest
babolivier Sep 2, 2021
ab5343c
Lint
babolivier Sep 2, 2021
50751a2
Use correct federation path for knocking
babolivier Sep 2, 2021
6355ca3
Merge tag 'v1.41.1' into babolivier/dinsic_1.41.0
babolivier Sep 2, 2021
a45de9e
Incorporate review
babolivier Sep 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions synapse/handlers/account_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def __init__(self, hs: "HomeServer"):
)

self._show_users_in_user_directory = self.hs.config.show_users_in_user_directory
self.profile_handler = self.hs.get_profile_handler()

self._account_validity_period = None
if self._account_validity_enabled:
Expand Down Expand Up @@ -429,7 +428,10 @@ async def renew_account_for_user(
# Check if renewed users should be reintroduced to the user directory
if self._show_users_in_user_directory:
# Show the user in the directory again by setting them to active
await self.profile_handler.set_active(
# We get the profile handler here so that we don't cause a cyclic dependency
# at startup.
# FIXME: this doesn't work with the new account validity module stuff
await self.hs.get_profile_handler().set_active(
[UserID.from_string(user_id)], True, True
)
babolivier marked this conversation as resolved.
Show resolved Hide resolved

Expand All @@ -446,4 +448,6 @@ async def _mark_expired_users_as_inactive(self):
active_expired_users = await self.store.get_expired_users()

# Mark each as non-active
await self.profile_handler.set_active(active_expired_users, False, True)
# We get the profile handler here so that we don't cause a cyclic dependency at
# startup.
await self.hs.get_profile_handler().set_active(active_expired_users, False, True)