buffer: Ignore unknown events.

This commit is contained in:
Damir Jelić 2018-12-03 22:39:50 +01:00
parent 9d3b624733
commit 1fe0484b96

View file

@ -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__)