When a user joins a space and a subchat in the space, then leaves, then gets invited to be an admin for the space, they will have admin permissions for the space but not the subchat.
Steps to Reproduce
On Account 1, create a space, and copy the student invite code
On Account 2, join the space using the invite code
On Account 2, join a subchat in the space, then leave the space
On Account 1, navigate to the space details page, and us 'Add teachers' to add Account 2 as an admin
On Account 2, accept the invite, and rejoin the subchat. Account 2 will not have admin privileges in that subchat.
Expected Behavior
When a user is an admin for a class, they should be admin for any subchat they join
Bug Description
When a user joins a space and a subchat in the space, then leaves, then gets invited to be an admin for the space, they will have admin permissions for the space but not the subchat.
Steps to Reproduce
Expected Behavior
When a user is an admin for a class, they should be admin for any subchat they join
App Version
analytics-rooms-data branch
Additional Platform Information
iPhone
Additional Context
Look into _onJoinSpaceChild in space_view.dart