diff --git a/js/lib/push_worker.js b/js/lib/push_worker.js index 39dc740f..5603f8e6 100644 --- a/js/lib/push_worker.js +++ b/js/lib/push_worker.js @@ -76,7 +76,7 @@ function fireNotification(obj, event) { var nowTime = +(new Date()) if (nowTime - lastAliveTime < 60000) { console.log('Supress notification because some instance is alive') - // return false + return false } if (muteUntil && nowTime < muteUntil) { console.log('Supress notification because mute for ', (muteUntil - nowTime) / 60000, 'min') diff --git a/js/locales/de-de.json b/js/locales/de-de.json index 58b157dc..31176734 100644 --- a/js/locales/de-de.json +++ b/js/locales/de-de.json @@ -542,6 +542,11 @@ "inactive_title": "Oh-oh, so viele Tabs....", "inactive_description_md": "Telegram unterstützt nur jeweils einen aktiven Tab.\nBitte lade die Seite neu oder schließe den Tab.", "inactive_reload_btn": "Neu laden", + "push_action_mute1d": "Mute background alerts for 1 day", + "push_action_settings": "Background alerts settings", + "push_action_mute1d_mobile": "Mute for 24H", + "push_action_settings_mobile": "Alerts settings", + "push_message_nopreview": "You have a new message", "country_select_modal_country_ab": "Abchasien", "country_select_modal_country_af": "Afghanistan", "country_select_modal_country_ax": "Åland-Inseln", diff --git a/js/locales/es-es.json b/js/locales/es-es.json index 6499cb9f..f8886a2e 100644 --- a/js/locales/es-es.json +++ b/js/locales/es-es.json @@ -542,6 +542,11 @@ "inactive_title": "Wow. Muchas pestañas.", "inactive_description_md": "Sólo puedes usar una pestaña activa con la app.\nRecarga esta página para seguir usándola o ciérrala.", "inactive_reload_btn": "Recargar app", + "push_action_mute1d": "Mute background alerts for 1 day", + "push_action_settings": "Background alerts settings", + "push_action_mute1d_mobile": "Mute for 24H", + "push_action_settings_mobile": "Alerts settings", + "push_message_nopreview": "You have a new message", "country_select_modal_country_ab": "Abjasia", "country_select_modal_country_af": "Afganistán", "country_select_modal_country_ax": "Islas Åland", diff --git a/js/locales/it-it.json b/js/locales/it-it.json index c4c29696..095158a0 100644 --- a/js/locales/it-it.json +++ b/js/locales/it-it.json @@ -542,6 +542,11 @@ "inactive_title": "Oh no, troppe pagine", "inactive_description_md": "Telegram supporta solo una scheda attiva con l'app.\nPer favore ricarica questa scheda per usarla o chiudila.", "inactive_reload_btn": "Ricarica l'app", + "push_action_mute1d": "Mute background alerts for 1 day", + "push_action_settings": "Background alerts settings", + "push_action_mute1d_mobile": "Silenzia per 24H", + "push_action_settings_mobile": "Alerts settings", + "push_message_nopreview": "Hai un nuovo messaggio", "country_select_modal_country_ab": "Abkhazia", "country_select_modal_country_af": "Afghanistan", "country_select_modal_country_ax": "Isole Aland", diff --git a/js/locales/nl-nl.json b/js/locales/nl-nl.json index 7322187c..85cfdfd5 100644 --- a/js/locales/nl-nl.json +++ b/js/locales/nl-nl.json @@ -542,6 +542,11 @@ "inactive_title": "Such error, many tabs", "inactive_description_md": "Telegram kan maar in één tabblad tegelijkertijd actief zijn met de app.\nVernieuw deze pagina om het tabblad te gebruiken, of sluit het tabblad.", "inactive_reload_btn": "Vernieuw app", + "push_action_mute1d": "Mute background alerts for 1 day", + "push_action_settings": "Background alerts settings", + "push_action_mute1d_mobile": "Mute for 24H", + "push_action_settings_mobile": "Alerts settings", + "push_message_nopreview": "You have a new message", "country_select_modal_country_ab": "Abchazië", "country_select_modal_country_af": "Afghanistan", "country_select_modal_country_ax": "Åland", diff --git a/js/locales/pt-br.json b/js/locales/pt-br.json index ad0a8793..6af14a4a 100644 --- a/js/locales/pt-br.json +++ b/js/locales/pt-br.json @@ -542,6 +542,11 @@ "inactive_title": "Erro, muitas abas", "inactive_description_md": "Telegram suporta apenas uma aba ativa com o app.\nPor favor, recarregue para continuar usando essa aba ou feche-a.", "inactive_reload_btn": "Recarregar App", + "push_action_mute1d": "Mute background alerts for 1 day", + "push_action_settings": "Background alerts settings", + "push_action_mute1d_mobile": "Mute for 24H", + "push_action_settings_mobile": "Alerts settings", + "push_message_nopreview": "You have a new message", "country_select_modal_country_ab": "Abcássia", "country_select_modal_country_af": "Afeganistão", "country_select_modal_country_ax": "Ilhas Aland", diff --git a/js/locales/ru-ru.json b/js/locales/ru-ru.json index 72c3d035..0fe093f1 100644 --- a/js/locales/ru-ru.json +++ b/js/locales/ru-ru.json @@ -542,6 +542,11 @@ "inactive_title": "Such error, many tabs", "inactive_description_md": "Telegram supports only one active tab with the app.\nPlease reload this page to continue using this tab or close it.", "inactive_reload_btn": "Reload App", + "push_action_mute1d": "Mute background alerts for 1 day", + "push_action_settings": "Background alerts settings", + "push_action_mute1d_mobile": "Mute for 24H", + "push_action_settings_mobile": "Alerts settings", + "push_message_nopreview": "You have a new message", "country_select_modal_country_ab": "Абхазия", "country_select_modal_country_af": "Афганистан", "country_select_modal_country_ax": "Аландские о-ва", diff --git a/service_worker.js b/service_worker.js index 6dbb0318..283bcf72 100644 --- a/service_worker.js +++ b/service_worker.js @@ -31,7 +31,7 @@ importScripts("js/lib/push_worker.js"); /* eslint-disable quotes, comma-spacing */ -var PrecacheConfig = [["badbrowser.html","cfb725c2ffb8df1fdf3efad6c69f7aa4"],["css/app.css","f4d166a761a7d6f8b145d17505c85433"],["css/badbrowser.css","3d516481170eb45605dfbbf4211ad4bd"],["css/desktop.css","8784f6b3f10a896f8d907ce9616bdf18"],["css/mobile.css","1b516092cafbb9d46cf695b5070a088f"],["favicon.ico","fb606fe0a27a1c62bdfc48561d908f39"],["favicon_unread.ico","b3a7e3414d29305250f377be7ab1e3e2"],["img/Manytabs.png","2bbd15e6ddf8c0212ccbedf7abd1c77e"],["img/Manytabs_2x.png","7a71629a5e4f7482b6320b103f1d543c"],["img/Telegram.png","85cd9ed3491576ba5e6ed3a9336f116f"],["img/Telegram.svg","4964c9bbfba510f495319c52562d70d4"],["img/Telegram72.png","1125082924531bd25844bc89a8f394e3"],["img/Telegram72_2x.png","0e7d8c7a5ba3f56eaa3123b97b8922b0"],["img/Telegram_2x.png","5f9f549b9d6bee5b0e4ac2141621b632"],["img/blank.gif","56398e76be6355ad5999b262208a17c9"],["img/changelog/card_wecandoit.png","3a0e66db81d0ea06166dd13fd8029aed"],["img/emojisprite_0.png","a279a9ce5721c10b6908b5f20cf5dda2"],["img/emojisprite_1.png","8db4db65bc5526baae9fb363d2ba3827"],["img/emojisprite_2.png","ff3a6afdb36b22d428aaebda31c8f2d7"],["img/emojisprite_3.png","54af1766e3f6ac1a79d8342c869ae3e7"],["img/emojisprite_4.png","e21d1b6c310a5bdfea043093623c270e"],["img/icons/AboutLogos.png","35d8405d003067c9d707bc5d65152d67"],["img/icons/AboutLogos_2x.png","b9e82c6df1d0782b45eb3d6a3461e5cc"],["img/icons/General.png","ec90b9d12667fc006ae1172fff3f895f"],["img/icons/General_2x.png","9469065c710a5ed48ffefc2147a75cbc"],["img/icons/IconsetSmiles.png","b639ed6a2b91d707dafe7861e0aee93b"],["img/icons/IconsetSmiles_2x.png","f9385d002e9cd787d704c26eaa4e6b9b"],["img/icons/IconsetW.png","eff584c44b6447bf47e52e6ebc273149"],["img/icons/IconsetW_2x.png","f26a5bef8b842d0d76b1de8839d9df96"],["img/icons/Major.png","f647639ac513b1b536ada5a0c8771a7b"],["img/icons/Major_2x.png","73ed42f9ad14e613c20b4fbaaa566cc1"],["img/icons/MobileIcons.png","98d22350c7a4a25456074b40509fa954"],["img/icons/MobileIcons_2x.png","4bd2be1096ac23847a1ac6981a666652"],["img/icons/PhotoIcons.png","23a876a0e0c97b8e63be3c03bc372c24"],["img/icons/PhotoIcons_2x.png","292582f6e1b991b28242dfaf0b6b3667"],["img/icons/ProfileIcons.png","e94f10d7230ce03b5b961055aec1072d"],["img/icons/ProfileIcons_2x.png","11e2549774d7e05bf82448f15838572e"],["img/icons/icon120.png","f5856bbec8d918d921e7ab733319b24e"],["img/icons/icon128.png","e89aea693493e8a6b727417d99c3345c"],["img/icons/icon16.png","78b34ae9efbd05a8588040649a01b8de"],["img/icons/icon32.png","0843d36cbaf7172c87b27aba4a1a3787"],["img/icons/icon60.png","0e99d9872818ad3bf80a57c65f7ab01f"],["img/icons/icon64.png","30bd04ee092bde79aaf61a09e0d2ac8f"],["img/icons/icon90.png","ec811df90200dc5ca319629ed9a26eb6"],["img/iphone_home120.png","86b05c2c7e8ad0de8204789716898da4"],["img/iphone_startup.png","435b6009c9339a57dd4092e57ea466df"],["img/logo_share.png","ddf6cddc068b7cc2eac1af77ad9da4be"],["img/placeholders/DialogListAvatarSystem@2x.png","4f9f71e3b925ffc22994ad369c6e89d2"],["img/placeholders/GroupAvatar1@2x.png","6b03ad1a83390a7833d053e61489accb"],["img/placeholders/GroupAvatar2@2x.png","cc24ed051254b8fd7c4d922c00fd226c"],["img/placeholders/GroupAvatar3@2x.png","bdfbb7e8c41efb40a8f73763f9d0c87b"],["img/placeholders/GroupAvatar4@2x.png","d2331f23158ae401b5b44cc135cb7c29"],["img/placeholders/PhotoThumbConversation.gif","56398e76be6355ad5999b262208a17c9"],["img/placeholders/PhotoThumbModal.gif","56398e76be6355ad5999b262208a17c9"],["img/placeholders/UserAvatar1@2x.png","27be09024c0bc78aa6469c7b2179400b"],["img/placeholders/UserAvatar2@2x.png","9ccf627d5bd7319e01e973584cd4441f"],["img/placeholders/UserAvatar3@2x.png","14b44e53a00014723acabee293c1e35a"],["img/placeholders/UserAvatar4@2x.png","b4fab5ac3d9100e8aa4670cfed4ada37"],["img/placeholders/UserAvatar5@2x.png","311ffa6462b8978e12b66e3902549e1d"],["img/placeholders/UserAvatar6@2x.png","3a52d80f3d3356e4051350dd1939982f"],["img/placeholders/UserAvatar7@2x.png","7135b26aacaaae0a59a2c32e8096fbc6"],["img/placeholders/UserAvatar8@2x.png","13f581d89c13b7c27338a548390d6765"],["img/placeholders/VideoThumbConversation.gif","56398e76be6355ad5999b262208a17c9"],["img/placeholders/VideoThumbModal.gif","56398e76be6355ad5999b262208a17c9"],["img/sound_a.mp3","eba09b6a457792c52fc610b5f9f974b3"],["index.html","6e2c95ff290d299c13fdb2468adcd172"],["js/app.js","06953b9a7c3b1650446c9a4a78c018e9"],["js/background.js","12004fed1812e62de54910267782f578"],["js/lib/bin_utils.js","40fac141bf8afcc824ed7b76c09f76fa"],["js/lib/crypto_worker.js","df468909675764fb274ae4f2eda5b062"],["js/lib/polyfill.js","d985db7b290fc8c999b950722b2602fa"],["js/lib/push_worker.js","1dca6ed73d235ecd882ad45eab16ae26"],["js/locales/de-de.json","4d6623cadaa734c80c7e2edc86676869"],["js/locales/en-us.json","a83c7a2b0cb043dffdae526e54cf0107"],["js/locales/es-es.json","8ecc588f0e2c9a9ea1c3bffdae662184"],["js/locales/it-it.json","416346e5db7a68f06af5cf30ec992f52"],["js/locales/nl-nl.json","92cf0046e536f84b29fcac542565d60e"],["js/locales/pt-br.json","5fb60b8f1928357276eb5e321c71fcaf"],["js/locales/ru-ru.json","c906e40479678faba4aaff0a12cce8e1"],["manifest.json","4af38c14109f447c857e898e1d94857d"],["manifest.webapp","3141698f896062ee60b42a2387b06da0"],["nacl/mtproto_crypto.nmf","f7cbc5ecce97f184041bf7e56e30a925"],["nacl/mtproto_crypto.pexe","9b0030189b74b07a96908bc00ca2df54"],["vendor/angular/i18n/angular-locale_de-de.js","bef8329c258f22d04189439c38321ad6"],["vendor/angular/i18n/angular-locale_en-us.js","4e84db290d2e1743fa3b8a199683c146"],["vendor/angular/i18n/angular-locale_es-es.js","1f6e4e2bc7658c602bef7d5db8b61af1"],["vendor/angular/i18n/angular-locale_it-it.js","93a0645abafb9ac6da0ca03fd78f922c"],["vendor/angular/i18n/angular-locale_nl-nl.js","e264b0fbe7e107397893e04fd6c4b071"],["vendor/angular/i18n/angular-locale_pt-br.js","1b07dd4fe830f6404f03e300f6454489"],["vendor/angular/i18n/angular-locale_ru-ru.js","7693713aa5d07d2aa7a9e95fe0948d58"],["vendor/closure/long.js","b0a35c095dc09f1fd10de13953946b82"],["vendor/cryptoJS/crypto.js","6d1ac0184656afab590fbf06e7bc8c5d"],["vendor/jsbn/jsbn_combined.js","d7eb1b82e658eef11ce3d8fd9caf10d5"],["vendor/leemon_bigint/bigint.js","99290db3a3369437ba0d44152dc36ba1"],["vendor/rusha/rusha.js","779d54331470a66576a5292e61fc1680"]]; +var PrecacheConfig = [["badbrowser.html","cfb725c2ffb8df1fdf3efad6c69f7aa4"],["css/app.css","f4d166a761a7d6f8b145d17505c85433"],["css/badbrowser.css","3d516481170eb45605dfbbf4211ad4bd"],["css/desktop.css","8784f6b3f10a896f8d907ce9616bdf18"],["css/mobile.css","1b516092cafbb9d46cf695b5070a088f"],["favicon.ico","fb606fe0a27a1c62bdfc48561d908f39"],["favicon_unread.ico","b3a7e3414d29305250f377be7ab1e3e2"],["img/Manytabs.png","2bbd15e6ddf8c0212ccbedf7abd1c77e"],["img/Manytabs_2x.png","7a71629a5e4f7482b6320b103f1d543c"],["img/Telegram.png","85cd9ed3491576ba5e6ed3a9336f116f"],["img/Telegram.svg","4964c9bbfba510f495319c52562d70d4"],["img/Telegram72.png","1125082924531bd25844bc89a8f394e3"],["img/Telegram72_2x.png","0e7d8c7a5ba3f56eaa3123b97b8922b0"],["img/Telegram_2x.png","5f9f549b9d6bee5b0e4ac2141621b632"],["img/blank.gif","56398e76be6355ad5999b262208a17c9"],["img/changelog/card_wecandoit.png","3a0e66db81d0ea06166dd13fd8029aed"],["img/emojisprite_0.png","a279a9ce5721c10b6908b5f20cf5dda2"],["img/emojisprite_1.png","8db4db65bc5526baae9fb363d2ba3827"],["img/emojisprite_2.png","ff3a6afdb36b22d428aaebda31c8f2d7"],["img/emojisprite_3.png","54af1766e3f6ac1a79d8342c869ae3e7"],["img/emojisprite_4.png","e21d1b6c310a5bdfea043093623c270e"],["img/icons/AboutLogos.png","35d8405d003067c9d707bc5d65152d67"],["img/icons/AboutLogos_2x.png","b9e82c6df1d0782b45eb3d6a3461e5cc"],["img/icons/General.png","ec90b9d12667fc006ae1172fff3f895f"],["img/icons/General_2x.png","9469065c710a5ed48ffefc2147a75cbc"],["img/icons/IconsetSmiles.png","b639ed6a2b91d707dafe7861e0aee93b"],["img/icons/IconsetSmiles_2x.png","f9385d002e9cd787d704c26eaa4e6b9b"],["img/icons/IconsetW.png","eff584c44b6447bf47e52e6ebc273149"],["img/icons/IconsetW_2x.png","f26a5bef8b842d0d76b1de8839d9df96"],["img/icons/Major.png","f647639ac513b1b536ada5a0c8771a7b"],["img/icons/Major_2x.png","73ed42f9ad14e613c20b4fbaaa566cc1"],["img/icons/MobileIcons.png","98d22350c7a4a25456074b40509fa954"],["img/icons/MobileIcons_2x.png","4bd2be1096ac23847a1ac6981a666652"],["img/icons/PhotoIcons.png","23a876a0e0c97b8e63be3c03bc372c24"],["img/icons/PhotoIcons_2x.png","292582f6e1b991b28242dfaf0b6b3667"],["img/icons/ProfileIcons.png","e94f10d7230ce03b5b961055aec1072d"],["img/icons/ProfileIcons_2x.png","11e2549774d7e05bf82448f15838572e"],["img/icons/icon120.png","f5856bbec8d918d921e7ab733319b24e"],["img/icons/icon128.png","e89aea693493e8a6b727417d99c3345c"],["img/icons/icon16.png","78b34ae9efbd05a8588040649a01b8de"],["img/icons/icon32.png","0843d36cbaf7172c87b27aba4a1a3787"],["img/icons/icon60.png","0e99d9872818ad3bf80a57c65f7ab01f"],["img/icons/icon64.png","30bd04ee092bde79aaf61a09e0d2ac8f"],["img/icons/icon90.png","ec811df90200dc5ca319629ed9a26eb6"],["img/iphone_home120.png","86b05c2c7e8ad0de8204789716898da4"],["img/iphone_startup.png","435b6009c9339a57dd4092e57ea466df"],["img/logo_share.png","ddf6cddc068b7cc2eac1af77ad9da4be"],["img/placeholders/DialogListAvatarSystem@2x.png","4f9f71e3b925ffc22994ad369c6e89d2"],["img/placeholders/GroupAvatar1@2x.png","6b03ad1a83390a7833d053e61489accb"],["img/placeholders/GroupAvatar2@2x.png","cc24ed051254b8fd7c4d922c00fd226c"],["img/placeholders/GroupAvatar3@2x.png","bdfbb7e8c41efb40a8f73763f9d0c87b"],["img/placeholders/GroupAvatar4@2x.png","d2331f23158ae401b5b44cc135cb7c29"],["img/placeholders/PhotoThumbConversation.gif","56398e76be6355ad5999b262208a17c9"],["img/placeholders/PhotoThumbModal.gif","56398e76be6355ad5999b262208a17c9"],["img/placeholders/UserAvatar1@2x.png","27be09024c0bc78aa6469c7b2179400b"],["img/placeholders/UserAvatar2@2x.png","9ccf627d5bd7319e01e973584cd4441f"],["img/placeholders/UserAvatar3@2x.png","14b44e53a00014723acabee293c1e35a"],["img/placeholders/UserAvatar4@2x.png","b4fab5ac3d9100e8aa4670cfed4ada37"],["img/placeholders/UserAvatar5@2x.png","311ffa6462b8978e12b66e3902549e1d"],["img/placeholders/UserAvatar6@2x.png","3a52d80f3d3356e4051350dd1939982f"],["img/placeholders/UserAvatar7@2x.png","7135b26aacaaae0a59a2c32e8096fbc6"],["img/placeholders/UserAvatar8@2x.png","13f581d89c13b7c27338a548390d6765"],["img/placeholders/VideoThumbConversation.gif","56398e76be6355ad5999b262208a17c9"],["img/placeholders/VideoThumbModal.gif","56398e76be6355ad5999b262208a17c9"],["img/sound_a.mp3","eba09b6a457792c52fc610b5f9f974b3"],["index.html","6e2c95ff290d299c13fdb2468adcd172"],["js/app.js","06953b9a7c3b1650446c9a4a78c018e9"],["js/background.js","12004fed1812e62de54910267782f578"],["js/lib/bin_utils.js","40fac141bf8afcc824ed7b76c09f76fa"],["js/lib/crypto_worker.js","df468909675764fb274ae4f2eda5b062"],["js/lib/polyfill.js","d985db7b290fc8c999b950722b2602fa"],["js/lib/push_worker.js","d1a09c6ccbc09f4cdb91a79ca943c607"],["js/locales/de-de.json","6333f0555ad3e426c3211fb84776293a"],["js/locales/en-us.json","a83c7a2b0cb043dffdae526e54cf0107"],["js/locales/es-es.json","0985b556aba74aa48a5982b14ef035e1"],["js/locales/it-it.json","1ca7e39aed5e2e210e98c769b197b02c"],["js/locales/nl-nl.json","613e7ccbf6b307fa239f1a892b90b734"],["js/locales/pt-br.json","33a08d50ac0d55dabd2b24871444e569"],["js/locales/ru-ru.json","c97cd078e4e5dbf2a99da143c7965bf7"],["manifest.json","4af38c14109f447c857e898e1d94857d"],["manifest.webapp","3141698f896062ee60b42a2387b06da0"],["nacl/mtproto_crypto.nmf","f7cbc5ecce97f184041bf7e56e30a925"],["nacl/mtproto_crypto.pexe","9b0030189b74b07a96908bc00ca2df54"],["vendor/angular/i18n/angular-locale_de-de.js","bef8329c258f22d04189439c38321ad6"],["vendor/angular/i18n/angular-locale_en-us.js","4e84db290d2e1743fa3b8a199683c146"],["vendor/angular/i18n/angular-locale_es-es.js","1f6e4e2bc7658c602bef7d5db8b61af1"],["vendor/angular/i18n/angular-locale_it-it.js","93a0645abafb9ac6da0ca03fd78f922c"],["vendor/angular/i18n/angular-locale_nl-nl.js","e264b0fbe7e107397893e04fd6c4b071"],["vendor/angular/i18n/angular-locale_pt-br.js","1b07dd4fe830f6404f03e300f6454489"],["vendor/angular/i18n/angular-locale_ru-ru.js","7693713aa5d07d2aa7a9e95fe0948d58"],["vendor/closure/long.js","b0a35c095dc09f1fd10de13953946b82"],["vendor/cryptoJS/crypto.js","6d1ac0184656afab590fbf06e7bc8c5d"],["vendor/jsbn/jsbn_combined.js","d7eb1b82e658eef11ce3d8fd9caf10d5"],["vendor/leemon_bigint/bigint.js","99290db3a3369437ba0d44152dc36ba1"],["vendor/rusha/rusha.js","779d54331470a66576a5292e61fc1680"]]; /* eslint-enable quotes, comma-spacing */ var CacheNamePrefix = 'sw-precache-v1-Telegram-' + (self.registration ? self.registration.scope : '') + '-'; diff --git a/webogram.appcache b/webogram.appcache index c2019a0c..a0eaf5b4 100644 --- a/webogram.appcache +++ b/webogram.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# Time: Fri Dec 16 2016 16:53:27 GMT+0300 (MSK) +# Time: Fri Dec 16 2016 17:18:30 GMT+0300 (MSK) CACHE: