Merge pull request #481 from jryans/format-key-null

Check for null keys in settings view model
This commit is contained in:
Bruno Windels 2021-09-01 10:37:01 +02:00 committed by GitHub
commit 795a57dde1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,11 @@ export class SettingsViewModel extends ViewModel {
}
get fingerprintKey() {
return formatKey(this._session.fingerprintKey);
const key = this._session.fingerprintKey;
if (!key) {
return null;
}
return formatKey(key);
}
get deviceId() {