mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 02:42:34 +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