pangeachat / client

Learn a language while texting your friends
https://krille-chan.github.io/fluffychat/
GNU Affero General Public License v3.0
1 stars 2 forks source link

Admin for space but not chat #312

Open Kelrap opened 1 month ago

Kelrap commented 1 month ago

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.

Screenshot 2024-06-10 at 11 11 10 AM Screenshot 2024-06-10 at 11 11 00 AM

Steps to Reproduce

  1. On Account 1, create a space, and copy the student invite code
  2. On Account 2, join the space using the invite code
  3. On Account 2, join a subchat in the space, then leave the space
  4. On Account 1, navigate to the space details page, and us 'Add teachers' to add Account 2 as an admin
  5. 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

App Version

analytics-rooms-data branch

Additional Platform Information

iPhone

Additional Context

Look into _onJoinSpaceChild in space_view.dart