mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #13864 from vector-im/t3chguy/toasts6_1
Allow deferring of Update Toast until the next morning
This commit is contained in:
commit
afd0d69ab5
@ -275,8 +275,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||
return this._ipcCall('getConfig');
|
||||
}
|
||||
|
||||
async onUpdateDownloaded(ev, updateInfo) {
|
||||
showUpdateToast(await this.getAppVersion(), updateInfo, updateInfo.releaseNotes);
|
||||
async onUpdateDownloaded(ev, {releaseNotes, releaseName}) {
|
||||
if (this.shouldShowUpdate(releaseName)) {
|
||||
showUpdateToast(await this.getAppVersion(), releaseName, releaseNotes);
|
||||
}
|
||||
}
|
||||
|
||||
getHumanReadableName(): string {
|
||||
|
@ -93,14 +93,6 @@ export default abstract class VectorBasePlatform extends BasePlatform {
|
||||
startUpdater() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the currently running app to the latest available
|
||||
* version and replace this instance of the app with the
|
||||
* new version.
|
||||
*/
|
||||
installUpdate() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a sensible default display name for the
|
||||
* device Vector is running on
|
||||
|
@ -140,7 +140,9 @@ export default class WebPlatform extends VectorBasePlatform {
|
||||
if (this.runningVersion === null) {
|
||||
this.runningVersion = ver;
|
||||
} else if (this.runningVersion !== ver) {
|
||||
if (this.shouldShowUpdate(ver)) {
|
||||
showUpdateToast(this.runningVersion, ver);
|
||||
}
|
||||
return { status: UpdateCheckStatus.Ready };
|
||||
} else {
|
||||
hideUpdateToast();
|
||||
|
Loading…
Reference in New Issue
Block a user