ResultadosDigitais / matrix

#matrix is the online open-source workplace inspired in sococo.com for distributed teams to have the experience of work together each day, side-by-side. No matter where team members might be. Working in an online workplace is even more productive when people are feeling in the same space.
MIT License
901 stars 238 forks source link

Persist desktop notifications on/off preference #332

Open phiter opened 4 years ago

phiter commented 4 years ago

Feature Description

The application should persist desktop notifications on/off preference

Problem

In the app bar, there is a button which enables/disables desktop notifications. This preference is not being persisted and if you refresh the page it turns on again.

Expected behaviour

The desktop notification preference should be persisted across page refreshes/different tabs.

Additional comments

Dark/light theme switch does that already using localstorage, so I suppose adding a similar mechanism to the notifications switcher could be a good feature.