aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2022-05-05 19:30:38 +0100
committerGitHub <noreply@github.com>2022-05-05 19:30:38 +0100
commit9957752a9d60d4519cc0b7e8b9b40a781240c27d (patch)
tree80de96398e63ea04a334802212f828d983a98b6e /clientapi
parente4da04e75b4cba1c9afb63b9973444e1da12021b (diff)
Define component interfaces based on consumers (2/2) (#2425)
* convert remaining interfaces * Tidy up the userapi interfaces
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/clientapi.go2
-rw-r--r--clientapi/routing/routing.go2
-rw-r--r--clientapi/routing/userdirectory.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/clientapi/clientapi.go b/clientapi/clientapi.go
index 957d082a..ad460908 100644
--- a/clientapi/clientapi.go
+++ b/clientapi/clientapi.go
@@ -38,7 +38,7 @@ func AddPublicRoutes(
transactionsCache *transactions.Cache,
fsAPI federationAPI.ClientFederationAPI,
userAPI userapi.ClientUserAPI,
- userDirectoryProvider userapi.UserDirectoryProvider,
+ userDirectoryProvider userapi.QuerySearchProfilesAPI,
keyAPI keyserverAPI.ClientKeyAPI,
extRoomsProvider api.ExtraPublicRoomsProvider,
) {
diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go
index 6da46707..f9f71ed7 100644
--- a/clientapi/routing/routing.go
+++ b/clientapi/routing/routing.go
@@ -53,7 +53,7 @@ func Setup(
rsAPI roomserverAPI.ClientRoomserverAPI,
asAPI appserviceAPI.AppServiceQueryAPI,
userAPI userapi.ClientUserAPI,
- userDirectoryProvider userapi.UserDirectoryProvider,
+ userDirectoryProvider userapi.QuerySearchProfilesAPI,
federation *gomatrixserverlib.FederationClient,
syncProducer *producers.SyncAPIProducer,
transactionsCache *transactions.Cache,
diff --git a/clientapi/routing/userdirectory.go b/clientapi/routing/userdirectory.go
index 4d41da73..f311457a 100644
--- a/clientapi/routing/userdirectory.go
+++ b/clientapi/routing/userdirectory.go
@@ -36,7 +36,7 @@ func SearchUserDirectory(
device *userapi.Device,
userAPI userapi.ClientUserAPI,
rsAPI api.ClientRoomserverAPI,
- provider userapi.UserDirectoryProvider,
+ provider userapi.QuerySearchProfilesAPI,
serverName gomatrixserverlib.ServerName,
searchString string,
limit int,