buffer: Ignore unknown events.
This commit is contained in:
parent
9d3b624733
commit
1fe0484b96
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,8 @@ from nio import (
|
|||
RoomTopicEvent,
|
||||
MegolmEvent,
|
||||
Event,
|
||||
OlmTrustError
|
||||
OlmTrustError,
|
||||
UnknownEvent
|
||||
)
|
||||
|
||||
from . import globals as G
|
||||
|
@ -1389,6 +1390,9 @@ class RoomBuffer(object):
|
|||
|
||||
self.undecrypted_events.append(event)
|
||||
|
||||
elif isinstance(event, UnknownEvent):
|
||||
pass
|
||||
|
||||
else:
|
||||
W.prnt(
|
||||
"", "Unhandled event of type {}.".format(type(event).__name__)
|
||||
|
|
Loading…
Add table
Reference in a new issue