1
0

Rename variables to 'local' to be obvious our intention

This commit is contained in:
Eric Eastwood
2022-09-29 18:59:41 -05:00
parent a8be41bb80
commit 72985dffdb
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -183,12 +183,12 @@ class ApplicationService:
# `store.get_app_service_users_in_room` was used in more places besides
# an experimental MSC. But for now we can avoid doing more work and
# barely using it later.
member_list = await store.get_local_users_in_room(
local_user_ids = await store.get_local_users_in_room(
room_id, on_invalidate=cache_context.invalidate
)
# check joined member events
for user_id in member_list:
for user_id in local_user_ids:
if self.is_interested_in_user(user_id):
return True
return False
+2 -2
View File
@@ -169,10 +169,10 @@ class ApplicationServiceWorkerStore(RoomMemberWorkerStore):
"""
# We can use `get_local_users_in_room(...)` here because an application
# service can only act on behalf of users of the server it's on.
users_in_room = await self.get_local_users_in_room(
local_users_in_room = await self.get_local_users_in_room(
room_id, on_invalidate=cache_context.invalidate
)
return list(filter(app_service.is_interested_in_user, users_in_room))
return list(filter(app_service.is_interested_in_user, local_users_in_room))
class ApplicationServiceStore(ApplicationServiceWorkerStore):