diff --git a/mautrix_telegram/matrix.py b/mautrix_telegram/matrix.py index 5f521ddb..27d6f164 100644 --- a/mautrix_telegram/matrix.py +++ b/mautrix_telegram/matrix.py @@ -215,6 +215,11 @@ class MatrixHandler(BaseMatrixHandler): event_id: EventID) -> None: await self.handle_kick_ban(False, room_id, user_id, kicked_by, reason, event_id) + async def handle_unban(self, room_id: RoomID, user_id: UserID, unbanned_by: UserID, + reason: str, event_id: EventID) -> None: + # TODO handle unbans properly instead of handling it as a kick + await self.handle_kick_ban(False, room_id, user_id, unbanned_by, reason, event_id) + async def handle_ban(self, room_id: RoomID, user_id: UserID, banned_by: UserID, reason: str, event_id: EventID) -> None: await self.handle_kick_ban(True, room_id, user_id, banned_by, reason, event_id) diff --git a/setup.py b/setup.py index 99a93c8a..09c0212b 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ setuptools.setup( install_requires=[ "aiohttp>=3.0.1,<4", - "mautrix>=0.4.0rc4,<0.5", + "mautrix>=0.4.0rc5,<0.5", "SQLAlchemy>=1.2.3,<2", "alembic>=1.0.0,<2", "commonmark>=0.8.1,<0.10",