Add setting to ignore unknown events

This commit is contained in:
miruka 2020-03-23 16:58:31 -04:00
parent d34e2ab2b6
commit bed0dbf998
2 changed files with 5 additions and 0 deletions

View File

@ -380,6 +380,10 @@ class NioCallbacks:
async def onUnknownEvent(self, room, ev) -> None:
if self.client.backend.ui_settings["hideUnknownEvents"]:
self.client.skipped_events[room.room_id] += 1
return
co = f"%1 sent an unsupported <b>{ev.type}</b> event"
await self.client.register_nio_event(room, ev, content=co)

View File

@ -214,6 +214,7 @@ class UISettings(JSONDataFile):
"collapseSidePanesUnderWindowWidth": 400,
"hideProfileChangeEvents": True,
"hideMembershipEvents": False,
"hideUnknownEvents": False,
"theme": "Midnight.qpl",
"writeAliases": {},
"media": {