Skip to content

Commit

Permalink
Only log modified rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMaul committed May 15, 2024
1 parent 6456b52 commit 1c7317a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions room_access_rules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ def get_room_ids_from(
return TaskStatus.COMPLETE, None, None

async def fix_room_power_levels(self, room_id: str) -> None:
logger.info(f"Fixing power levels of room {room_id}")

# Fetch local users joined to the room
local_joined_users = set()
for user_id, membership in await self.store.get_local_users_related_to_room(
Expand Down Expand Up @@ -253,6 +251,7 @@ async def fix_room_power_levels(self, room_id: str) -> None:

# Send the updated pl event to the room with a local admin
if changed:
logger.info(f"Fixing power levels of room {room_id}")
await self.module_api.create_and_send_event_into_room(
{
"room_id": room_id,
Expand Down

0 comments on commit 1c7317a

Please sign in to comment.