Compare commits

..

No commits in common. "43a14513f0a3e5c05cb60c439e970b58a60d9495" and "4c01a49310e22010b053704a3dd7a81425ce1da9" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View file

@ -372,10 +372,7 @@ class Client(DBClient):
_, server = self.client.parse_user_id(evt.sender) _, server = self.client.parse_user_id(evt.sender)
room_id = await self.client.join_room(evt.content.replacement_room, servers=[server]) room_id = await self.client.join_room(evt.content.replacement_room, servers=[server])
power_levels = await self.client.get_state_event(room_id, EventType.ROOM_POWER_LEVELS) power_levels = await self.client.get_state_event(room_id, EventType.ROOM_POWER_LEVELS)
create_event = await self.client.get_state_event( if power_levels.get_user_level(evt.sender) < power_levels.invite:
room_id, EventType.ROOM_CREATE, format="event"
)
if power_levels.get_user_level(evt.sender, create_event) < power_levels.invite:
self.log.warning( self.log.warning(
f"{evt.room_id} was tombstoned into {room_id} by {evt.sender}," f"{evt.room_id} was tombstoned into {room_id} by {evt.sender},"
" but the sender doesn't have invite power levels, leaving..." " but the sender doesn't have invite power levels, leaving..."

View file

@ -1,4 +1,4 @@
mautrix>=0.20.9rc2,<0.21 mautrix>=0.20.7,<0.21
aiohttp>=3,<4 aiohttp>=3,<4
yarl>=1,<2 yarl>=1,<2
asyncpg>=0.20,<1 asyncpg>=0.20,<1