Change the empty dict check condition in the leave event.

This commit is contained in:
poljar (Damir Jelić) 2018-02-14 14:22:20 +01:00
parent a4a8e448a7
commit 32babecb33

View file

@ -239,7 +239,7 @@ class MatrixPartEvent(MatrixEvent):
@classmethod @classmethod
def from_dict(cls, server, room_id, parsed_dict): def from_dict(cls, server, room_id, parsed_dict):
try: try:
if parsed_dict is {}: if parsed_dict == {}:
return cls( return cls(
server, server,
room_id) room_id)