From 110fd3d90d41c4ff242e7b24ff64f5a9db8bb34e Mon Sep 17 00:00:00 2001 From: morethanwords Date: Thu, 7 Oct 2021 17:21:26 +0400 Subject: [PATCH] Catch missed changelog --- .env | 4 ++-- src/lib/appManagers/apiUpdatesManager.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 72569e51..965341a2 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=0.8.6 -VERSION_FULL=0.8.6 (1) -BUILD=1 +VERSION_FULL=0.8.6 (4) +BUILD=4 diff --git a/src/lib/appManagers/apiUpdatesManager.ts b/src/lib/appManagers/apiUpdatesManager.ts index 4a4e14b2..c852ad12 100644 --- a/src/lib/appManagers/apiUpdatesManager.ts +++ b/src/lib/appManagers/apiUpdatesManager.ts @@ -692,7 +692,7 @@ export class ApiUpdatesManager { if(newVersion) { this.updatesState.syncLoading.then(() => { fetch('changelogs/' + newVersion + '.md') - .then(res => res.text()) + .then(res => (res.status === 200 && res.ok && res.text()) || Promise.reject()) .then(text => { const pre = `**Telegram Web${App.suffix} was updated to version alpha ${newVersion}**\n\n`;