Fix Room.plain_topic accidentally set to None

This commit is contained in:
miruka 2019-12-13 15:09:13 -04:00
parent 8a4c160df6
commit c8ce50a01c

View File

@ -812,7 +812,7 @@ class MatrixClient(nio.AsyncClient):
given_name = room.name, given_name = room.name,
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, plain_topic = room.topic or "",
topic = HTML_FILTER.filter_inline(room.topic or ""), topic = HTML_FILTER.filter_inline(room.topic or ""),
inviter_id = inviter, inviter_id = inviter,
inviter_name = room.user_name(inviter) if inviter else "", inviter_name = room.user_name(inviter) if inviter else "",