[User] Membership getter nullcheck fix

This commit is contained in:
Christian Pauly 2019-12-18 13:44:31 +01:00
parent 735c9e6b21
commit 7c1389d3d1

View file

@ -97,7 +97,7 @@ class User extends RoomState {
return e.toString() == 'Membership.' + content['membership'];
}
return false;
});
}, orElse: () => Membership.join);
/// The avatar if the user has one.
MxContent get avatarUrl => content != null && content["avatar_url"] is String