diff --git a/matrix/events.py b/matrix/events.py index 923b42e..5417bf5 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -239,7 +239,7 @@ class MatrixPartEvent(MatrixEvent): @classmethod def from_dict(cls, server, room_id, parsed_dict): try: - if parsed_dict is {}: + if parsed_dict == {}: return cls( server, room_id)