Update mautrix-python to handle invites separately from leaves. Fixes #402
This commit is contained in:
@@ -215,6 +215,11 @@ class MatrixHandler(BaseMatrixHandler):
|
|||||||
event_id: EventID) -> None:
|
event_id: EventID) -> None:
|
||||||
await self.handle_kick_ban(False, room_id, user_id, kicked_by, reason, event_id)
|
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,
|
async def handle_ban(self, room_id: RoomID, user_id: UserID, banned_by: UserID, reason: str,
|
||||||
event_id: EventID) -> None:
|
event_id: EventID) -> None:
|
||||||
await self.handle_kick_ban(True, room_id, user_id, banned_by, reason, event_id)
|
await self.handle_kick_ban(True, room_id, user_id, banned_by, reason, event_id)
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ setuptools.setup(
|
|||||||
|
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"aiohttp>=3.0.1,<4",
|
"aiohttp>=3.0.1,<4",
|
||||||
"mautrix>=0.4.0rc4,<0.5",
|
"mautrix>=0.4.0rc5,<0.5",
|
||||||
"SQLAlchemy>=1.2.3,<2",
|
"SQLAlchemy>=1.2.3,<2",
|
||||||
"alembic>=1.0.0,<2",
|
"alembic>=1.0.0,<2",
|
||||||
"commonmark>=0.8.1,<0.10",
|
"commonmark>=0.8.1,<0.10",
|
||||||
|
|||||||
Reference in New Issue
Block a user