aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2021-03-03 17:00:31 +0000
committerGitHub <noreply@github.com>2021-03-03 17:00:31 +0000
commit9557ccada4efe50d0f370019ad0b9f017fc7ebcf (patch)
tree8f0d52d793180ce05b9235bdd1da10ee3a7d76ef /roomserver/api
parenta2773922d2fe40e6d95d73f532640702709ab526 (diff)
Fix appsevice alias queries part 2 (#1684)
* Check membership of room * Use QueryStateAfterEventsResponse * Fix complexity * Add field ShouldHitAppservice to GetRoomIDForAlias * Hit appservice when trying to join a non-existent alias * remove unused * Changes that I made a long time ago * Rename to appserviceJoinedAtEvent * Check membership in GetMemberships * Update QueryMembershipsForRoom * Tweaks in client API * Update appserviceJoinedAtEvent * Comments * Try QueryMembershipForUser instead * Undo some changes to client API that shouldn't be needed * More /event tweaks * Refactor /event bit * Go back to QueryMembershipsForRoom because appservices are hard * Fix bugs in onMessage * Add comments * More logical naming, clean up a bit Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'roomserver/api')
-rw-r--r--roomserver/api/alias.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/roomserver/api/alias.go b/roomserver/api/alias.go
index 61fdc611..2eb91129 100644
--- a/roomserver/api/alias.go
+++ b/roomserver/api/alias.go
@@ -34,6 +34,9 @@ type SetRoomAliasResponse struct {
type GetRoomIDForAliasRequest struct {
// Alias we want to lookup
Alias string `json:"alias"`
+ // Should we ask appservices for their aliases as a part of
+ // the request?
+ IncludeAppservices bool `json:"include_appservices"`
}
// GetRoomIDForAliasResponse is a response to GetRoomIDForAlias