element-hq / element-hq/element-web
Allow desktop notifications not updated after accepting permission prompt
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. Go on a domain where the "Notifications" permissions have not been accepted yet
2. Go to settings > notifications
3. Click on "Enable desktop notifications for this session"
4. Accept the browser prompt to allow notifications
### Outcome
#### What did you expect?
For the settings to be toggled to true after accepting the permission prompt
For the "Enable audible notifications for this session" setting to keep its original value
#### What happened instead?
The notification permissions have been granted for that domain but the Element setting remains set to `false`. On top of that the "Enable audible notifications for this session" setting which was previously set to `true` has been toggled automatically and is not set to `false`.
Clicking again on "Enable desktop notification" after the permisssions have been granted sets the settings to true.
### Operating system
macOS
### Browser information
Chrome
### URL for webapp
app.element.io
### Application version
1.9.7
### Homeserver
matrix.org
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.