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
|
@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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue