1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-13 07:42:14 +03:00
Commit Graph

2775 Commits

Author SHA1 Message Date
David Baker
0362e61f36 Unused var 2017-12-06 22:24:57 +00:00
David Baker
d92a77f695 lint 2017-12-06 22:24:19 +00:00
David Baker
e6dd573e8a Fix test (needs a cryptostore now) 2017-12-06 19:42:01 +00:00
David Baker
b6330c3a4f er, this isn't an object 2017-12-06 19:41:44 +00:00
David Baker
10bc714f5c lint 2017-12-06 16:04:00 +00:00
David Baker
8f57723b88 Emit an event for crypto store migration
As we may want to warn the user to not go back to an older version.
2017-12-06 15:24:29 +00:00
David Baker
3d71bee85e Check for sessions in indexeddb before migrating
Don't migrate sessions from localstorage if we already have some
in indexeddb
2017-12-06 12:43:08 +00:00
David Baker
30e00d5fa7 Add impl to localstorage & memory store 2017-12-06 12:02:05 +00:00
David Baker
bc99a9d792 Merge remote-tracking branch 'origin/develop' into dbkr/inbound_sessions_to_cryptostore 2017-12-06 10:05:33 +00:00
David Baker
61df41d21f Merge pull request #584 from matrix-org/dbkr/sessions_to_cryptostore
Move sessions to the crypto store
2017-12-06 10:04:33 +00:00
David Baker
0b4ef8dcbb Migrate inbound group sessions to crypto store 2017-12-05 21:47:22 +00:00
David Baker
9d7d48b9b5 s/sessionStore/cryptoStore/ 2017-12-05 14:04:18 +00:00
David Baker
fb37150dfd Doc exception handling fun 2017-12-05 13:45:37 +00:00
David Baker
bd08ed898d Maybe slightly better exception handling 2017-12-05 11:11:14 +00:00
David Baker
d3bc525713 More doc 2017-12-05 10:23:26 +00:00
David Baker
ae27c553ac More sensible loop & logging 2017-12-05 10:13:34 +00:00
David Baker
27030ae1e9 Use _unpickleSession in _getSession 2017-12-05 10:09:54 +00:00
David Baker
fd083e1e66 doc 2017-12-05 10:04:06 +00:00
David Baker
5e4149ae76 Remove unused function 2017-12-04 18:14:56 +00:00
David Baker
859d462629 Lint 2017-12-04 18:08:38 +00:00
David Baker
8bfa81df42 Catch & rethrow decryption exceptions 2017-12-04 17:55:12 +00:00
David Baker
6782d53e28 Remove prefix from sessions store keys 2017-12-04 17:36:33 +00:00
David Baker
4796721d5c Migrate sessions from sessionStore 2017-12-04 17:12:13 +00:00
David Baker
55bbc71a17 Move sessionstore -> cryptostore migration
...into a separate function
2017-12-04 16:08:52 +00:00
David Baker
5372575b24 Implement session storage in memory & localstorage 2017-12-04 15:49:59 +00:00
David Baker
d995019c6e lint 2017-12-04 14:40:32 +00:00
David Baker
aa70da5659 Move sessions to the crypto store
This doesn't migrate existing ones yet
2017-12-04 14:33:03 +00:00
Luke Barnard
020b293068 Merge branch 'master' into develop 2017-12-04 11:58:30 +00:00
Luke Barnard
678ff23bcb v0.9.2 v0.9.2 2017-12-04 11:57:05 +00:00
Luke Barnard
f93d50dcd0 Prepare changelog for v0.9.2 2017-12-04 11:57:04 +00:00
Luke Barnard
aa3201ebb0 Send correct m.visibility flag in js-sdk 2017-12-04 11:54:42 +00:00
Luke Barnard
4ad153c425 Send correct m.visibility flag in js-sdk 2017-12-01 18:01:23 +00:00
David Baker
082683bf0e Merge pull request #582 from matrix-org/dbkr/crypto_store_txn_api
Change crypto store transaction API
2017-11-30 13:45:28 +00:00
Luke Barnard
7f590af0b5 Add API wrapper for multiple device deletion API (#583) 2017-11-30 10:16:18 +00:00
David Baker
ecc1c86600 Doc some more things 2017-11-29 17:40:48 +00:00
David Baker
fece506cdd delint 2017-11-29 16:35:12 +00:00
David Baker
f11a58e2cb Change crypto store transaction API
To allow multiple things to be fetched/stored in a single
transaction.

Currently it is still just the account that's actually in
indexeddb though.
2017-11-29 16:22:54 +00:00
David Baker
0238ecebed Fix comment 2017-11-28 11:32:34 +00:00
Richard van der Hoff
0d6ffa3935 Merge pull request #581 from matrix-org/dbkr/copyrights
Add some missed copyright notices
2017-11-27 16:04:07 +00:00
David Baker
143632e635 Add some missed copyright notices 2017-11-27 15:56:35 +00:00
David Baker
9ec33a97bb Merge pull request #579 from matrix-org/dbkr/e2e_indexeddb
Move Olm account to IndexedDB
2017-11-27 13:57:27 +00:00
David Baker
7e2c236582 Missed a s/account data/picked account/ 2017-11-27 13:46:31 +00:00
David Baker
6ebfd175bc jsdoc clarifications 2017-11-22 18:37:16 +00:00
David Baker
defaa918a6 Remove unused function 2017-11-22 18:26:26 +00:00
David Baker
c4e70be0a5 Better comment wording 2017-11-22 18:25:25 +00:00
David Baker
57d425fae6 Make the save function not return a promise
This was entirely unnecessary and hopefully make things a bit
simpler to understand and has fewer asyncs flying around.
2017-11-22 18:05:08 +00:00
David Baker
6024163af8 s/accountData/pickledAccount/ 2017-11-22 17:50:00 +00:00
David Baker
44b35cdb3d Lint 2017-11-22 16:53:21 +00:00
David Baker
36ff0ad019 Merge pull request #580 from matrix-org/rav/fix_crypto_error_logging
Fix logging of DecryptionErrors to be more useful
2017-11-22 16:44:09 +00:00
David Baker
9218e518f1 Add LocalStorageCryptoStore
To avoid throwing away all the data for anyone running firefox in
one of the modes where indexedDB is broken.
2017-11-22 16:41:52 +00:00