diff options
author | Kegsay <kegan@matrix.org> | 2020-08-04 11:32:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 11:32:14 +0100 |
commit | 0c4e8f6d4f0f39d2bd72807675295e4fad70479c (patch) | |
tree | 9560b73d1aa1a62d0bff700523b1ea9586cdb7cf /cmd/dendritejs/main.go | |
parent | fb56bbf0b7d4b21da3f55b066e71d24bf4599887 (diff) |
Send device list updates to servers (outbound only) (#1237)
* Add QueryDeviceMessages to serve up device keys and stream IDs
* Consume key change events in fedsender
Don't yet send them to destinations as we haven't worked them out yet
* Send device list updates to all required servers
* Glue it all together
Diffstat (limited to 'cmd/dendritejs/main.go')
-rw-r--r-- | cmd/dendritejs/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/dendritejs/main.go b/cmd/dendritejs/main.go index 0df53e06..fd407e6e 100644 --- a/cmd/dendritejs/main.go +++ b/cmd/dendritejs/main.go @@ -208,17 +208,16 @@ func main() { KeyDatabase: fetcher, } + stateAPI := currentstateserver.NewInternalAPI(base.Cfg, base.KafkaConsumer) rsAPI := roomserver.NewInternalAPI(base, keyRing, federation) eduInputAPI := eduserver.NewInternalAPI(base, cache.New(), userAPI) asQuery := appservice.NewInternalAPI( base, userAPI, rsAPI, ) - fedSenderAPI := federationsender.NewInternalAPI(base, federation, rsAPI, &keyRing) + fedSenderAPI := federationsender.NewInternalAPI(base, federation, rsAPI, stateAPI, &keyRing) rsAPI.SetFederationSenderAPI(fedSenderAPI) p2pPublicRoomProvider := NewLibP2PPublicRoomsProvider(node, fedSenderAPI, federation) - stateAPI := currentstateserver.NewInternalAPI(base.Cfg, base.KafkaConsumer) - monolith := setup.Monolith{ Config: base.Cfg, AccountDB: accountDB, |