Add setting to ignore unknown events
This commit is contained in:
parent
d34e2ab2b6
commit
bed0dbf998
|
@ -380,6 +380,10 @@ class NioCallbacks:
|
||||||
|
|
||||||
|
|
||||||
async def onUnknownEvent(self, room, ev) -> None:
|
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"
|
co = f"%1 sent an unsupported <b>{ev.type}</b> event"
|
||||||
await self.client.register_nio_event(room, ev, content=co)
|
await self.client.register_nio_event(room, ev, content=co)
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,7 @@ class UISettings(JSONDataFile):
|
||||||
"collapseSidePanesUnderWindowWidth": 400,
|
"collapseSidePanesUnderWindowWidth": 400,
|
||||||
"hideProfileChangeEvents": True,
|
"hideProfileChangeEvents": True,
|
||||||
"hideMembershipEvents": False,
|
"hideMembershipEvents": False,
|
||||||
|
"hideUnknownEvents": False,
|
||||||
"theme": "Midnight.qpl",
|
"theme": "Midnight.qpl",
|
||||||
"writeAliases": {},
|
"writeAliases": {},
|
||||||
"media": {
|
"media": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user