1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00
Commit Graph

2643 Commits

Author SHA1 Message Date
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
Richard van der Hoff
c80bde1f60 Fix logging of DecryptionErrors to be more useful
We were relying on being able to override toString in DecryptionError, which
(a) doesn't work thanks to https://github.com/babel/babel/issues/3083, and (b)
was a bit naughty anyway. Instead, just add a detailedString property and use
that.
2017-11-22 14:42:32 +00:00
David Baker
4b7157b987 Remove unnecessary 'if' 2017-11-22 14:31:06 +00:00
David Baker
a90f592224 Add comment on deprecation 2017-11-22 14:12:35 +00:00
David Baker
59f228dab7 Migrate account from session store 2017-11-22 14:07:19 +00:00
David Baker
bae3f5ceb7 It's a heap, not a stack 2017-11-22 10:19:27 +00:00
David Baker
a5c5da5b8a Lint 2017-11-22 10:18:53 +00:00
David Baker
7ecf313132 Use a callback function at the store layer
Rather than a promise which relies on the caller's promise handler
code being run in the same tick which is not guaranteed.
2017-11-22 10:04:27 +00:00
David Baker
313cfacfa1 Add comment 2017-11-21 18:40:25 +00:00
David Baker
fb991503a9 Move OLM account to IndexedDBd
Wraps all access to the account in a transaction so any updates
done to the account must be done in the same transaction, making the
update atomic between tabs.

Doesn't do any migration from localstorage yet.
2017-11-21 18:27:40 +00:00
David Baker
c31ce641a1 Merge branch 'master' into develop 2017-11-17 15:57:22 +00:00
David Baker
5b1a5b7dd0 v0.9.1 v0.9.1 2017-11-17 15:55:21 +00:00
David Baker
f25324fb1c Prepare changelog for v0.9.1 2017-11-17 15:55:20 +00:00
David Baker
2a7f35a633 Merge pull request #577 from matrix-org/dbkr/fix_force_turn
Fix the force TURN option
2017-11-17 15:51:01 +00:00
David Baker
eb2d5484b8 jsdoc and remove pointless return 2017-11-17 15:31:50 +00:00
David Baker
40cbd5ec9d Honour old forceTURN option for now 2017-11-17 15:03:12 +00:00
David Baker
10680ace17 Fix the force TURN option
Option needed to be passed in when creating a webrtc call, but for
incoming calls the js-sdk creates the call itself, so the app never
gets a chance to set the option.
2017-11-17 14:51:37 +00:00
David Baker
26e28ed687 Don't spuriously send unknown devices error
Send a sensible error message for other errors.
2017-11-17 11:48:56 +00:00
David Baker
8bf92d84db oops - didn't mean to remove that bit of doc 2017-11-16 18:12:09 +00:00
David Baker
9e2bb5b37b Allow answer to be called again after failing
* Store the answer we generate so if we fail to send it, we can
   try to send it again (doing the same again doesn't work as
   webrtc is in the wrong state).
 * Don't send ICE candidates if the call is ringing: queue them up
   so we can send them later if we manage to actually send the
   answer.
2017-11-16 16:29:45 +00:00
David Baker
a48a88c312 Don't send a hangup on user media failure
We won't have sent the invite anyway. Also termainate before we
fire the error event so the call is 'ended' when the event handlers
fire (which means if they try to hang up it's also ignored)
2017-11-15 17:18:47 +00:00
David Baker
76b2fc2a6c Merge remote-tracking branch 'origin/develop' into dbkr/udd_no_auto_show 2017-11-15 12:10:06 +00:00
Luke Barnard
4438d716b9 Merge branch 'master' into develop 2017-11-15 10:57:57 +00:00
David Baker
8fcf55d761 BREAKING CHANGE: Fixes for unknown device errors
* If we can't send an invite due to unknown devices, abort the
   call.
 * Don't transition to the `invite_sent` state until the invite
   has actually sent.
 * Add a specific error code for failure due to unknown devices.
 * Don't send ICE candidate messages if the call has ended.
 * Add an `event` property to errors from `sendEvent` so that the
   caller can resend or cancel the event.
2017-11-15 10:56:57 +00:00
Luke Barnard
3091a76702 v0.9.0 v0.9.0 2017-11-15 10:56:31 +00:00
Luke Barnard
117e2370d7 Prepare changelog for v0.9.0 2017-11-15 10:56:31 +00:00
Matthew Hodgson
a35d70e995 Merge pull request #568 from turt2live/travis/granular-settings
[BREAKING] Change the behaviour of the unverfied devices blacklist flag
2017-11-15 10:31:11 +00:00
Travis Ralston
ec68000105 Merge branch 'develop' into travis/granular-settings 2017-11-14 19:19:01 -07:00
Matthew Hodgson
c707d3db00 Merge pull request #557 from turt2live/travis/presence
Support set_presence=offline for syncing
2017-11-14 23:41:37 +00:00
Matthew Hodgson
d3572836bd Merge pull request #556 from turt2live/travis/improved-redact-check
Consider cases where the sender may not redact their own event
2017-11-14 23:25:06 +00:00
David Baker
a5dac751b0 BREAKING CHANGE: Remove send_event_error
Reverts https://github.com/matrix-org/matrix-js-sdk/pull/378

This swallowed all errors from sendEvent, breaking the ICE candidate
retrying. react-sdk no longer listens for send_event_error so I
think it's best to just remove this.
2017-11-13 17:51:59 +00:00
Travis Ralston
7a59579dcd Support sending additional options with acceptance (#570)
To be able to send things like `{visibility: { type: 'private ' }}`

Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-10 14:14:11 +00:00
Luke Barnard
a60e4efe6d v0.9.0-rc.1 v0.9.0-rc.1 2017-11-10 13:30:24 +00:00