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,
|
RoomTopicEvent,
|
||||||
MegolmEvent,
|
MegolmEvent,
|
||||||
Event,
|
Event,
|
||||||
OlmTrustError
|
OlmTrustError,
|
||||||
|
UnknownEvent
|
||||||
)
|
)
|
||||||
|
|
||||||
from . import globals as G
|
from . import globals as G
|
||||||
|
@ -1389,6 +1390,9 @@ class RoomBuffer(object):
|
||||||
|
|
||||||
self.undecrypted_events.append(event)
|
self.undecrypted_events.append(event)
|
||||||
|
|
||||||
|
elif isinstance(event, UnknownEvent):
|
||||||
|
pass
|
||||||
|
|
||||||
else:
|
else:
|
||||||
W.prnt(
|
W.prnt(
|
||||||
"", "Unhandled event of type {}.".format(type(event).__name__)
|
"", "Unhandled event of type {}.".format(type(event).__name__)
|
||||||
|
|
Loading…
Add table
Reference in a new issue