if userID is null, don't try to get isRoomAdmin
This commit is contained in:
parent
cd5f2379b8
commit
212632a913
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ extension AnalyticsRoomExtension on Room {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!isRoomAdmin) return;
|
||||
if (client.userID == null || !isRoomAdmin) return;
|
||||
final spaceHierarchy = await client.getSpaceHierarchy(
|
||||
id,
|
||||
maxDepth: 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue