From 24ea8fa6730b0d5de1903d8ff8dc143ece55aa13 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 15 Aug 2019 10:51:37 -0400 Subject: [PATCH] Register invited rooms --- src/python/matrix_client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index d04688c6..5ff7c59f 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -654,6 +654,12 @@ class MatrixClient(nio.AsyncClient): await self.register_nio_event(room, ev, content=co) + # Callbacks for nio invite events + + async def onInviteEvent(self, room, ev) -> None: + await self.register_nio_room(room) + + # Callbacks for nio ephemeral events async def onTypingNoticeEvent(self, room, ev) -> None: