Change the empty dict check condition in the leave event.
This commit is contained in:
parent
a4a8e448a7
commit
32babecb33
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue