Merge branch 'user-fix-membership' into 'master'

[User] Membership getter nullcheck fix

See merge request famedly/famedlysdk!139
This commit is contained in:
Christian Pauly 2019-12-18 12:48:05 +00:00
commit 9979885168

View file

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