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

Can't lock space with archived chat #353

Closed Kelrap closed 2 weeks ago

Kelrap commented 2 weeks ago

Bug Description

If a space has had a chat archived at some point, attempts to lock the space will result in a No permission error

Steps to Reproduce

  1. Create a space
  2. Archive or leave the welcome chat
  3. Select Lock Space in space chat details page
  4. The toggle will not change, and a No permission popup will appear

Expected Behavior

Space should be lockable even if chats have been archived before

App Version

new-merge branch

Additional Platform Information

Firefox and Safari

Additional Context

Does locking rooms affect analytics rooms? Or does the space somehow keep track of child rooms, even after they've been archived?

ggurdin commented 2 weeks ago

The space keeps track of all its child rooms, even those that are archived. In this case, I think when locking a room/space or determining if a room/space is locked, archived rooms should be ignored