diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-12-12 08:20:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 08:20:59 +0100 |
commit | 7d2344049d0780e92b071939addc41219ce94f5a (patch) | |
tree | 5c176838ae54ac2d6e8a684da8ff4d981a65863b /cmd/dendrite-polylith-multi | |
parent | aaf4e5c8654463cc5431d57db9163ad9ed558f53 (diff) |
Cleanup stale device lists for users we don't share a room with anymore (#2857)
The stale device lists table might contain entries for users we don't
share a room with anymore. This now asks the roomserver about left users
and removes those entries from the table.
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'cmd/dendrite-polylith-multi')
-rw-r--r-- | cmd/dendrite-polylith-multi/personalities/keyserver.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dendrite-polylith-multi/personalities/keyserver.go b/cmd/dendrite-polylith-multi/personalities/keyserver.go index d2924b89..ad0bd0e5 100644 --- a/cmd/dendrite-polylith-multi/personalities/keyserver.go +++ b/cmd/dendrite-polylith-multi/personalities/keyserver.go @@ -22,7 +22,8 @@ import ( func KeyServer(base *basepkg.BaseDendrite, cfg *config.Dendrite) { fsAPI := base.FederationAPIHTTPClient() - intAPI := keyserver.NewInternalAPI(base, &base.Cfg.KeyServer, fsAPI) + rsAPI := base.RoomserverHTTPClient() + intAPI := keyserver.NewInternalAPI(base, &base.Cfg.KeyServer, fsAPI, rsAPI) intAPI.SetUserAPI(base.UserAPIClient()) keyserver.AddInternalRoutes(base.InternalAPIMux, intAPI, base.EnableMetrics) |