aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/server_notices.go
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2022-05-05 13:17:38 +0100
committerGitHub <noreply@github.com>2022-05-05 13:17:38 +0100
commit506de4bb3d69fef27e60d09d06712a72e588a198 (patch)
treec2e7c0fd25b047cde8e597f9e675ba45a0fe5bab /clientapi/routing/server_notices.go
parentd9e71b93b68efb57582d02448883b8a1259205e8 (diff)
Define component interfaces based on consumers (1/2) (#2423)
* Specify interfaces used by appservice, do half of clientapi * convert more deps of clientapi to finer-grained interfaces * Convert mediaapi and rest of clientapi * Somehow this got missed
Diffstat (limited to 'clientapi/routing/server_notices.go')
-rw-r--r--clientapi/routing/server_notices.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/clientapi/routing/server_notices.go b/clientapi/routing/server_notices.go
index 47b0da7b..9c34f2e1 100644
--- a/clientapi/routing/server_notices.go
+++ b/clientapi/routing/server_notices.go
@@ -56,8 +56,8 @@ func SendServerNotice(
req *http.Request,
cfgNotices *config.ServerNotices,
cfgClient *config.ClientAPI,
- userAPI userapi.UserInternalAPI,
- rsAPI api.RoomserverInternalAPI,
+ userAPI userapi.ClientUserAPI,
+ rsAPI api.ClientRoomserverAPI,
asAPI appserviceAPI.AppServiceQueryAPI,
device *userapi.Device,
senderDevice *userapi.Device,
@@ -276,7 +276,7 @@ func (r sendServerNoticeRequest) valid() (ok bool) {
// It returns an userapi.Device, which is used for building the event
func getSenderDevice(
ctx context.Context,
- userAPI userapi.UserInternalAPI,
+ userAPI userapi.ClientUserAPI,
cfg *config.ClientAPI,
) (*userapi.Device, error) {
var accRes userapi.PerformAccountCreationResponse