From 7c1389d3d1877903bdc5a08369e7b38f7a24c0aa Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 18 Dec 2019 13:44:31 +0100 Subject: [PATCH] [User] Membership getter nullcheck fix --- lib/src/User.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/User.dart b/lib/src/User.dart index 1ed74c7..da373f0 100644 --- a/lib/src/User.dart +++ b/lib/src/User.dart @@ -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