element-hq / element-hq/element-web

Allow desktop notifications not updated after accepting permission prompt

Open
#20,174 7 comments 0 reactions 0 assignees View on GitHub
A-Notifications A-User-Settings O-Uncommon S-Minor T-Defect Z-GetYourUpdates
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.