mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
cleanup, better copy text
This commit is contained in:
parent
494c5cbcf0
commit
fe5b732c97
@ -36,7 +36,6 @@ export class SessionStatusViewModel extends ViewModel {
|
|||||||
this._reconnector = reconnector;
|
this._reconnector = reconnector;
|
||||||
this._status = this._calculateState(reconnector.connectionStatus.get(), sync.status.get());
|
this._status = this._calculateState(reconnector.connectionStatus.get(), sync.status.get());
|
||||||
this._session = session;
|
this._session = session;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
@ -66,7 +65,7 @@ export class SessionStatusViewModel extends ViewModel {
|
|||||||
return this.i18n`Sync failed because of ${this._sync.error}`;
|
return this.i18n`Sync failed because of ${this._sync.error}`;
|
||||||
}
|
}
|
||||||
if (this._session.needsSessionBackup.get()) {
|
if (this._session.needsSessionBackup.get()) {
|
||||||
return this.i18n`Some messages could not be decrypted. Connect to your secret storage to decrypt them.`;
|
return this.i18n`Set up secret storage to decrypt older messages.`;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@ -130,7 +129,8 @@ export class SessionStatusViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get isSecretStorageShown() {
|
get isSecretStorageShown() {
|
||||||
return this._session.needsSessionBackup.get();
|
// TODO: we need a model here where we can have multiple messages queued up and their buttons don't bleed into each other.
|
||||||
|
return this._status === SessionStatus.Syncing && this._session.needsSessionBackup.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
connectNow() {
|
connectNow() {
|
||||||
|
Loading…
Reference in New Issue
Block a user