David Baker
17cc12844d
Merge pull request #458 from matrix-org/rav/resolve_timeline_window_quickly
...
Make TimelineWindow.load resolve quicker if we have the events
2017-06-09 20:06:28 +01:00
Richard van der Hoff
6cfcf92a28
Make TimelineWindow.load resolve quicker if we have the events
...
If we have the events in memory, let TimelineWindow.load() return
a resolved promise, so that the UI can show the view straight away instead
of showing the spinner.
2017-06-09 14:59:11 +01:00
Luke Barnard
6ed9a85dca
Add API for POST /user_directory/search ( #457 )
...
* Add API for POST /user_directory/search
This takes a JSON body of the form:
```json
{
"term": "search term",
"limit": 42,
}
```
where "term" is the term to match against user IDs, display names and domains and "limit" is the maximum number of results to return (which is defaulted server-side).
The response body looks like
```json
{
"results ": [
{ "user_id": "@someid:mydomain.com", "display_name": "Some Name", "avatar_url": "mx://..." },
...
],
"limited": false
}
```
where "limited" indicates whether the "limit" was used to truncate the list.
2017-06-07 15:34:07 +01:00
Richard van der Hoff
0371265fea
Send a cancellation for room key requests ( #456 )
...
* Send a cancellation for room key requests
When we receive a room key, cancel any pending requests we have open for that
key.
2017-06-07 14:00:47 +01:00
Richard van der Hoff
de257b34c0
Merge pull request #454 from matrix-org/rav/key_share/incoming
...
Implement sharing of megolm keys
2017-06-07 13:17:43 +01:00
Richard van der Hoff
4b6575d94a
Fix jsdocs
2017-06-07 11:02:27 +01:00
Richard van der Hoff
2c54d76085
Implement sharing of megolm keys
2017-06-06 14:46:54 +01:00
Richard van der Hoff
70f39ed760
Fix lint failure
2017-06-06 14:46:24 +01:00
Richard van der Hoff
1c6652483b
Merge pull request #449 from matrix-org/rav/handle_room_key_requests
...
Process received room key requests
2017-06-06 14:30:56 +01:00
Richard van der Hoff
ab7e0a9266
Merge branch 'room_key_sharing' into rav/handle_room_key_requests
2017-06-06 14:30:34 +01:00
Richard van der Hoff
ff323d00af
Merge pull request #448 from matrix-org/rav/send_room_key_requests
...
Send m.room_key_request events when we fail to decrypt an event
2017-06-06 14:25:40 +01:00
Richard van der Hoff
ea2a04135f
Send a room key request on decryption failure
...
When we are missing the keys to decrypt an event, send out a request for those
keys to our other devices and to the original sender.
2017-06-06 14:24:19 +01:00
Richard van der Hoff
6d88c76464
Storage layer for management of outgoing room key requests
2017-06-06 14:24:19 +01:00
Luke Barnard
9b188ca87d
Use single room object for duration of peek ( #453 )
...
Use single room object for duration of peek
Instead of getting the room by ID every time the room is polled for events, which could cause issues if the state of the room is modified from under the peeking logic (if the user joined the room or registered etc.)
2017-06-06 12:15:30 +01:00
Richard van der Hoff
1664312c80
Address review comments
...
Avoid gut-wrenching properties on IncomingRoomKeyRequest.
2017-06-05 16:07:38 +01:00
David Baker
38baa42ebb
Merge pull request #451 from matrix-org/dbkr/stop_peeking
...
Stop peeking when a matrix client is stopped
2017-06-05 14:16:35 +01:00
David Baker
654322e896
Stop peeking when a matrix client is stopped
...
Otherwise we get very confused when the peek poll returns after
the client is stopped.
2017-06-05 14:04:41 +01:00
Richard van der Hoff
3f70f532b7
Update README.md
...
lack of olm is a warning, not an exception
2017-06-05 09:24:59 +01:00
Richard van der Hoff
6ba214a259
Merge pull request #450 from arxcode/develop
...
Update README: Clarify how to install libolm
2017-06-05 09:22:34 +01:00
arxcode
caf73f387f
Update README: Clarify how to install libolm
2017-06-04 23:24:11 +02:00
Matthew Hodgson
9a81ca9fab
v0.7.10
v0.7.10
2017-06-02 01:02:01 +01:00
Matthew Hodgson
0edf19a871
Prepare changelog for v0.7.10
2017-06-02 01:02:01 +01:00
Matthew Hodgson
6989f6c835
switch to using new media constraints to allow device selection to work
2017-06-01 21:57:58 +01:00
Richard van der Hoff
2daa39520a
Room key request cancellation handling
2017-06-01 18:30:32 +01:00
Richard van der Hoff
c8eca50f43
Processing of received room key requests
...
Doesn't actually do any of the crypto magic yet.
2017-06-01 18:30:26 +01:00
Richard van der Hoff
de844f1a32
Merge pull request #447 from matrix-org/rav/fix_indexeddb_deletion
...
indexeddb-crypto-store: fix db deletion
2017-06-01 17:34:37 +01:00
Richard van der Hoff
97951e1c1a
Merge pull request #446 from matrix-org/rav/load_olm_from_global
...
Load Olm from the global rather than requiring it.
2017-06-01 15:41:22 +01:00
Richard van der Hoff
2edbed8528
indexeddb-crypto-store: fix db deletion
...
Add an `onversionchange` listener to close the db, so that we can delete it
without blocking.
2017-06-01 15:37:27 +01:00
Richard van der Hoff
24937910c7
Merge remote-tracking branch 'origin/develop' into rav/load_olm_from_global
2017-06-01 15:31:27 +01:00
Richard van der Hoff
5cd441fb48
Add a warning to the changelog
2017-06-01 15:30:00 +01:00
Richard van der Hoff
06b956bd75
disable e2e test when there is no e2e
2017-06-01 13:16:10 +01:00
Richard van der Hoff
41864d46c3
Load Olm from the global rather than requiring it.
...
This means that we can avoid confusing everybody in the world about how to
webpack js-sdk apps.
2017-06-01 13:09:48 +01:00
Matthew Hodgson
f6622e0bcd
unbreak riot-web release process
2017-06-01 02:41:47 +01:00
Matthew Hodgson
0f30d21fa2
v0.7.9
v0.7.9
2017-06-01 01:41:06 +01:00
Matthew Hodgson
4257c8c9f5
Prepare changelog for v0.7.9
2017-06-01 01:41:06 +01:00
Richard van der Hoff
331859d383
Merge pull request #445 from matrix-org/rav/indexeddb_crypto_store
...
Initial framework for indexeddb-backed crypto store
2017-05-31 18:06:45 +01:00
Richard van der Hoff
ef03b708a8
Add MatrixClient.clearStores
...
- to clear both sets of storage on logout
2017-05-31 17:22:07 +01:00
Richard van der Hoff
716d098361
Address Kegan's review comments
...
jsdoc mostly.
2017-05-31 16:05:00 +01:00
Richard van der Hoff
d887057660
Merge pull request #444 from matrix-org/rav/factor_out_reemit
...
Factor out reEmit to a common module
2017-05-31 14:22:34 +01:00
Richard van der Hoff
7efbfebb4d
Factor out reEmit to a common module
...
and rewrite it to use modern JS while we're at it
2017-05-31 11:01:48 +01:00
Richard van der Hoff
4c7afe5af0
Initial framework for indexeddb-backed crypto store
...
Doesn't do anything useful yet - just demonstrates a framework for how I hope
it will fit into the sdk.
2017-05-30 23:25:07 +01:00
Richard van der Hoff
676515cf27
Merge pull request #443 from matrix-org/rav/es6ify_algorithm_base
...
crypto/algorithms/base.js: Convert to es6
2017-05-23 16:36:42 +01:00
Richard van der Hoff
0eb5b0fdfa
Merge pull request #435 from t3chguy/maySendRedactionForEvent
...
maySendRedactionForEvent for userId
2017-05-23 15:45:46 +01:00
Richard van der Hoff
2feba4787f
Merge pull request #441 from matrix-org/rav/get_userid
...
MatrixClient: add getUserId()
2017-05-23 15:44:34 +01:00
Michael Telatynski
516dc1043e
prevent powerLevels being undef
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2017-05-23 14:53:11 +01:00
Richard van der Hoff
b26c1c57dc
crypto/algorithms/base.js: Convert to es6
...
Convert base to an es6 module with es6 classes, for clarity and to help with
jsdoccing.
Complications are:
* jsdoc gets confused by `export class`, so the exports are separated.
* turns out that extending Error is a bit difficult, so instanceof doesn't work
on derived Error classes. This only really affects us in one place (app-side
code shouldn't be doing instanceofs anyway), so just use `name` instead.
2017-05-23 14:32:13 +01:00
Richard van der Hoff
0945ba9e90
Merge pull request #442 from matrix-org/rav/custom_babel_for_jsdoc
...
Run jsdoc on a custom babeling of the source
2017-05-23 14:28:41 +01:00
Michael Telatynski
69ed6f283d
fix based on rich's feedback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2017-05-23 12:55:05 +01:00
Richard van der Hoff
9eef850d0c
Run jsdoc on a custom babeling of the source
...
jsdoc can't read our raw source, because of our dangling commas in function
calls. On the other hand, running on /lib means that a lot of the useful
information about exports is lost and you end up having to jump through hoops
to get jsdoc to generate the right thing.
This uses a separate run of babel (with all the presets turned off) to generate
source which is almost identical to the input, but lacks trailing commas.
(https://babeljs.io/blog/2015/10/31/setting-up-babel-6 says 'Babel 6 ships
without any default transforms, so when you run Babel on a file it will just
print it back out to you without changing anything.' - however, that is,
empirically, not entirely true.)
2017-05-23 12:26:17 +01:00
Richard van der Hoff
cf1574d690
MatrixClient: add getUserId()
...
... I'm amazed we got this far without it.
2017-05-23 10:37:26 +01:00