[User] Membership getter nullcheck fix
This commit is contained in:
parent
735c9e6b21
commit
7c1389d3d1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue