mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 10:52: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;
|
return true;
|
||||||
}
|
}
|
||||||
if (room.isDirectChat &&
|
if (room.isDirectChat &&
|
||||||
|
room.summary?.mHeroes != null &&
|
||||||
room.summary.mHeroes.any((userId) {
|
room.summary.mHeroes.any((userId) {
|
||||||
final user = space.getState(EventTypes.RoomMember, userId)?.asUser;
|
final user = space.getState(EventTypes.RoomMember, userId)?.asUser;
|
||||||
return user != null && user.membership == Membership.join;
|
return user != null && user.membership == Membership.join;
|
||||||
|
Loading…
Reference in New Issue
Block a user