diff --git a/src/python/nio_callbacks.py b/src/python/nio_callbacks.py index a9b1f16d..58919991 100644 --- a/src/python/nio_callbacks.py +++ b/src/python/nio_callbacks.py @@ -337,10 +337,20 @@ class NioCallbacks: async def onUnknownBadEvent(self, room, ev) -> None: + co = "%1 sent a malformed event lacking the minimal structure." + await self.client.register_nio_event(room, ev, content=co) + + + async def onUnknownEvent(self, room, ev) -> None: co = "%1 sent an event this client doesn't understand." await self.client.register_nio_event(room, ev, content=co) + async def onUnknownEncryptedEvent(self, room, ev) -> None: + co = "%1 sent an event this client doesn't know how to decrypt." + await self.client.register_nio_event(room, ev, content=co) + + # Callbacks for nio invite events async def onInviteEvent(self, room, ev) -> None: