mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
We attempted a number of different approaches to solving this problem: First, we tried using HTML5 local storage to keep track of which browser should have created the desktop notification. This failed because one needs locking, and it doesn't appear there is an working locking implementation for HTML5 local storage that could allow us to do this across tabs. See #2936 for details. Ultimately we went with setting the message ID as a tag. Tags are intended to be used for updating existing desktop notifications, which means this implementation causes new notifications to flicker in and out sometimes when multiple tabs are open, but that certainly beats having duplicates. Fixes #99.
23 KiB
23 KiB