Correctly handle not showing notifications in a service-worker friendly way #2397
Labels
App:Frontend
Kind:Core
Anything that changes or affects the fundamental core data structures & design of the application.
Kind:Enhancement
Improvements, new features, performance upgrades, etc.
Level:Advanced
Priority:High
Problem
#2394 handles not displaying notifications to the user when the user is already looking at the chat by checking the current route.
This doesn't work in the context of the service-worker, which is where
gi.actions
will live once #2357 is merged.Another consideration is whether the user has been idle. Even if the user is looking at the chat screen, we may still want to play a sound if they've been idle for a sufficient period of time. We currently use
idleVue
to check this, but this logic isn't used in #2394.Solution
Handle all of this in a service-worker friendly way.
The text was updated successfully, but these errors were encountered: