-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Summary
Latest role permissions are not synced correctly when the app is launched. Changes made to permissions while the app was killed are not reflected in the UI until the user re-authenticates (logs out and back in).
Steps to Reproduce
- Kill the app.
- In the System Console/Server settings, disable a permission for a specific role (e.g., "Create Channels").
- Launch the app.
- Observe the UI (e.g., the "+ CREATE NEW Channel" button).
Actual Behavior
The UI does not reflect the updated permissions on launch. For example, the "+ CREATE NEW Channel" button remains visible.
Note: If the app is already running and receives a WebSocket event when the permission is changed, the UI updates correctly. The issue only occurs during the initial cold start.
Expected Behavior
The app should fetch the latest role permissions during the initialization process and update the UI accordingly. The "+ CREATE NEW Channel" button should be hidden if the permission is disabled.