Fix Room inviter_avatar getting set to None

This commit is contained in:
miruka 2019-08-17 18:17:14 -04:00
parent 1663b166c7
commit 4e14828004

View File

@ -358,7 +358,8 @@ class MatrixClient(nio.AsyncClient):
topic = room.topic or "", topic = 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 "",
inviter_avatar = room.avatar_url(inviter) if inviter else "", inviter_avatar =
(room.avatar_url(inviter) or "") if inviter else "",
left = left, left = left,
filter_string = " ".join({ filter_string = " ".join({
name, name,