Browse Source

Catch missed changelog

master
morethanwords 3 years ago
parent
commit
110fd3d90d
  1. 4
      .env
  2. 2
      src/lib/appManagers/apiUpdatesManager.ts

4
.env

@ -1,5 +1,5 @@
API_ID=1025907 API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750 API_HASH=452b0359b988148995f22ff0f4229750
VERSION=0.8.6 VERSION=0.8.6
VERSION_FULL=0.8.6 (1) VERSION_FULL=0.8.6 (4)
BUILD=1 BUILD=4

2
src/lib/appManagers/apiUpdatesManager.ts

@ -692,7 +692,7 @@ export class ApiUpdatesManager {
if(newVersion) { if(newVersion) {
this.updatesState.syncLoading.then(() => { this.updatesState.syncLoading.then(() => {
fetch('changelogs/' + newVersion + '.md') fetch('changelogs/' + newVersion + '.md')
.then(res => res.text()) .then(res => (res.status === 200 && res.ok && res.text()) || Promise.reject())
.then(text => { .then(text => {
const pre = `**Telegram Web${App.suffix} was updated to version alpha ${newVersion}**\n\n`; const pre = `**Telegram Web${App.suffix} was updated to version alpha ${newVersion}**\n\n`;

Loading…
Cancel
Save