mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 03:25:06 -04:00
Rename various ApplicationServices interested methods (#11915)
This commit is contained in:
parent
9297d040a7
commit
fb0ffa9676
8 changed files with 175 additions and 76 deletions
|
@ -119,7 +119,7 @@ class DirectoryHandler:
|
|||
|
||||
service = requester.app_service
|
||||
if service:
|
||||
if not service.is_interested_in_alias(room_alias_str):
|
||||
if not service.is_room_alias_in_namespace(room_alias_str):
|
||||
raise SynapseError(
|
||||
400,
|
||||
"This application service has not reserved this kind of alias.",
|
||||
|
@ -221,7 +221,7 @@ class DirectoryHandler:
|
|||
async def delete_appservice_association(
|
||||
self, service: ApplicationService, room_alias: RoomAlias
|
||||
) -> None:
|
||||
if not service.is_interested_in_alias(room_alias.to_string()):
|
||||
if not service.is_room_alias_in_namespace(room_alias.to_string()):
|
||||
raise SynapseError(
|
||||
400,
|
||||
"This application service has not reserved this kind of alias",
|
||||
|
@ -376,7 +376,7 @@ class DirectoryHandler:
|
|||
# non-exclusive locks on the alias (or there are no interested services)
|
||||
services = self.store.get_app_services()
|
||||
interested_services = [
|
||||
s for s in services if s.is_interested_in_alias(alias.to_string())
|
||||
s for s in services if s.is_room_alias_in_namespace(alias.to_string())
|
||||
]
|
||||
|
||||
for service in interested_services:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue