if userID is null, don't try to get isRoomAdmin

pull/1476/head
ggurdin 1 year ago
parent cd5f2379b8
commit 212632a913
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -10,7 +10,7 @@ extension AnalyticsRoomExtension on Room {
return; return;
} }
if (!isRoomAdmin) return; if (client.userID == null || !isRoomAdmin) return;
final spaceHierarchy = await client.getSpaceHierarchy( final spaceHierarchy = await client.getSpaceHierarchy(
id, id,
maxDepth: 1, maxDepth: 1,

Loading…
Cancel
Save