mirror of https://github.com/vector-im/riot-web
Fix bug with localStorage loading
parent
98ed93ee5b
commit
edfc9a0841
|
@ -56,7 +56,7 @@ export default class DecryptionFailureTracker {
|
|||
}
|
||||
|
||||
loadTrackedEventHashMap() {
|
||||
this.trackedEventHashMap = JSON.parse(localStorage.getItem('mx-decryption-failure-event-id-hashes'));
|
||||
this.trackedEventHashMap = JSON.parse(localStorage.getItem('mx-decryption-failure-event-id-hashes')) || {};
|
||||
}
|
||||
|
||||
saveTrackedEventHashMap() {
|
||||
|
|
Loading…
Reference in New Issue