Add event callback for RoomUnknownMessage

This commit is contained in:
miruka 2019-09-13 19:58:45 -04:00
parent d3a02deb46
commit a2ab7b3090

View File

@ -624,6 +624,11 @@ class MatrixClient(nio.AsyncClient):
await self.register_nio_event(room, ev, content=co)
async def onRoomMessageUnknown(self, room, ev) -> None:
co = "%1 sent a message this client doesn't understand."
await self.register_nio_event(room, ev, content=co)
async def onRoomCreateEvent(self, room, ev) -> None:
co = "%1 allowed users on other matrix servers to join this room." \
if ev.federate else \