Fix Room.given_name possibly being None
This commit is contained in:
parent
df76efa359
commit
51c68cf998
|
@ -809,7 +809,7 @@ class MatrixClient(nio.AsyncClient):
|
||||||
|
|
||||||
self.models[Room, self.user_id][room.room_id] = Room(
|
self.models[Room, self.user_id][room.room_id] = Room(
|
||||||
room_id = room.room_id,
|
room_id = room.room_id,
|
||||||
given_name = room.name,
|
given_name = room.name or "",
|
||||||
display_name = room.display_name or "",
|
display_name = room.display_name or "",
|
||||||
avatar_url = room.gen_avatar_url or "",
|
avatar_url = room.gen_avatar_url or "",
|
||||||
plain_topic = room.topic or "",
|
plain_topic = room.topic or "",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user