Browse Source

Improved PUSH notifications

Closes #1593
master
Igor Zhukov 7 years ago
parent
commit
2a86521dae
  1. 4
      app/js/lib/push_worker.js

4
app/js/lib/push_worker.js

@ -57,7 +57,9 @@ self.addEventListener('push', function(event) { @@ -57,7 +57,9 @@ self.addEventListener('push', function(event) {
if (userInvisibleIsSupported() || hasActiveWindows) {
return closeAllNotifications()
}
var promise = self.registration.showNotification('Telegram').then(function () {
return self.registration.showNotification('Telegram', {
tag: 'unknown_peer'
}).then(function () {
if (hasActiveWindows) {
return closeAllNotifications()
}

Loading…
Cancel
Save