Catch missed changelog

This commit is contained in:
morethanwords 2021-10-07 17:21:26 +04:00
parent 17cbe22d0c
commit 110fd3d90d
2 changed files with 3 additions and 3 deletions

4
.env
View File

@ -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

View File

@ -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`;