Fix Room.given_name possibly being None

This commit is contained in:
miruka 2019-12-13 17:18:36 -04:00
parent df76efa359
commit 51c68cf998

View File

@ -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 "",