Merge branch 'main' into pr-1406

This commit is contained in:
Re-bin
2026-03-02 06:24:53 +00:00
6 changed files with 31 additions and 32 deletions

View File

@@ -454,8 +454,7 @@ class MatrixChannel(BaseChannel):
await asyncio.sleep(2)
async def _on_room_invite(self, room: MatrixRoom, event: InviteEvent) -> None:
allow_from = self.config.allow_from or []
if not allow_from or event.sender in allow_from:
if self.is_allowed(event.sender):
await self.client.join(room.room_id)
def _is_direct_room(self, room: MatrixRoom) -> bool: