1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Fix bug with localStorage loading

This commit is contained in:
Luke Barnard
2018-06-15 17:00:12 +01:00
parent 98ed93ee5b
commit edfc9a0841

View File

@@ -56,7 +56,7 @@ export default class DecryptionFailureTracker {
} }
loadTrackedEventHashMap() { 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() { saveTrackedEventHashMap() {