Closed timwis closed 8 years ago
(pseudocode) if current_route == inbound.from && window.inFocus then don't send push notification (or unread indicator, really)
if current_route == inbound.from && window.inFocus
Dependent on yoshuawuyts/choo#241
It seems like just testing document.hasFocus() is enough -- the unread indicators on the left should hopefully suffice while the page is in focus. Only testing will tell.
document.hasFocus()
(pseudocode)
if current_route == inbound.from && window.inFocus
then don't send push notification (or unread indicator, really)Dependent on yoshuawuyts/choo#241