fix: Add missing null check
This commit is contained in:
parent
ae5009e16f
commit
e671fdf6a4
1 changed files with 1 additions and 0 deletions
|
|
@ -200,6 +200,7 @@ class ChatListController extends State<ChatList> {
|
|||
return true;
|
||||
}
|
||||
if (room.isDirectChat &&
|
||||
room.summary?.mHeroes != null &&
|
||||
room.summary.mHeroes.any((userId) {
|
||||
final user = space.getState(EventTypes.RoomMember, userId)?.asUser;
|
||||
return user != null && user.membership == Membership.join;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue