Disable stickers preload once in 15min

Closes #812
This commit is contained in:
Igor Zhukov 2015-06-30 14:44:33 +03:00
parent c480d370ad
commit 875932bcba

View File

@ -3682,14 +3682,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (!started) {
started = true;
setTimeout(getStickers, 1000);
setInterval(preloadStickers, 900000);
}
}
function preloadStickers() {
getStickers().then(getStickersImages);
}
function processRawStickers(stickers) {
if (applied !== stickers.hash) {
applied = stickers.hash;