mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-17 17:39:41 +01:00
fix: Add missing null check
This commit is contained in:
parent
d6728783a2
commit
ac7ee03bd9
@ -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…
Reference in New Issue
Block a user