Travis Ralston
eeb2c463dc
Check for r0.6.0 support in addition to unstable feature flags
...
To avoid the same problem that happened with lazy-loading (see https://github.com/matrix-org/synapse/issues/5528 ).
Note that as of writing r0.6.0 is not yet released, however it is the next scheduled release of the client-server API.
2019-09-16 14:30:18 -06:00
David Baker
80a92dcdc2
Update room members on member event redaction
...
If a member event was redacted, we weren't updating the current
state.
2019-09-11 16:07:34 +01:00
Travis Ralston
dc9081e9d4
Merge pull request #1028 from matrix-org/travis/hidden_rr
...
Support hidden read receipts
2019-09-10 10:55:58 -06:00
Travis Ralston
07af333943
clarify comment
2019-09-09 14:44:51 -06:00
Travis Ralston
0bbc781d0c
Do 3pid lookups in lowercase
...
Fixes https://github.com/vector-im/riot-web/issues/10754
2019-09-07 14:04:30 -06:00
Travis Ralston
79bf64f079
Appease the linter
2019-09-05 20:40:16 -06:00
Travis Ralston
ed67d39456
Support hidden read receipts
2019-09-05 19:38:49 -06:00
Travis Ralston
03cccef805
Update src/client.js
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-09-02 11:06:54 -06:00
Travis Ralston
6d5a0c2718
Add Synapse admin functions for deactivating a user
...
For https://github.com/matrix-org/matrix-react-sdk/pull/3371
2019-09-01 18:05:12 -06:00
David Baker
3071587f11
Fix addPendingEvent with pending event order == chronological
...
When the pending event order setting was set to 'chronological'
(the default) `addPendingEvent` would NPE because Room no longer
has a `this._filter` property. It should get the filter from the
event timeline set instead, as it does in the previous line when
checking or the presence of a filter.
We should strongly consider changing the default pending event order
to 'detached' and probably removing 'chronological' or comitting to
support it properly: it's not really tested and is prone to breakage
like this.
Applies flumpt's fix from https://github.com/matrix-org/matrix-js-sdk/issues/599
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/599
2019-08-28 16:34:09 -04:00
Travis Ralston
23159807b0
Merge pull request #1024 from matrix-org/travis/wk-raw
...
Add AutoDiscovery.getRawClientConfig() for easy .well-known lookups
2019-08-27 08:22:55 -06:00
Travis Ralston
0e51dfed46
Don't convert errors to JSON if they are JSON already
...
For example, if the identity server throws a 401 on `/account`, we end up here with a JSON object. Don't convert the string `object Object` to JSON because it'll fail: just use the object.
2019-08-23 12:00:07 -06:00
J. Ryan Stinnett
09b00335f8
Merge pull request #1022 from matrix-org/jryans/is-token-to-hs
...
Send id_access_token to HS for use in proxied IS requests
2019-08-23 17:13:41 +01:00
J. Ryan Stinnett
3d274815d9
Change to provider object
2019-08-23 11:17:39 +01:00
Travis Ralston
70d60b905d
Add AutoDiscovery.getRawClientConfig() for easy .well-known lookups
...
Useful in cases where you don't need to validate the homeserver information.
2019-08-22 14:45:42 -06:00
Travis Ralston
8b9bef5cb3
Clean up JSON handling in identity server requests
2019-08-22 08:32:20 -06:00
J. Ryan Stinnett
31e72efc91
Send id_access_token to HS for use in proxied IS requests
...
This passes along the `id_access_token` to the HS, which it will need when
speaking v2 IS APIs to the IS.
Unfortunately, some HSes seem to explode when given this new parameter, so we
only pass it along for the moment if an unstable feature `m.id_access_token` is
also set.
Part of https://github.com/vector-im/riot-web/issues/10525
Defined in MSC2140
2019-08-22 14:31:41 +01:00
Travis Ralston
3980b62df2
js-doc syntax is unknown to our js-doc
2019-08-21 14:32:38 -06:00
Travis Ralston
b306df726a
Lookups are URL safe
2019-08-21 14:30:24 -06:00
Travis Ralston
3d5a79be3b
Hashes need tokens too
2019-08-21 14:30:16 -06:00
Travis Ralston
ba78d1a9ae
JSON is JSON
2019-08-21 14:30:04 -06:00
Travis Ralston
241811298f
Appease the js-doc
2019-08-21 14:17:55 -06:00
Travis Ralston
8a0ddc43ab
Use the v2 (hashed) lookup for identity server queries
...
Fixes https://github.com/vector-im/riot-web/issues/10556
Implements [MSC2134](https://github.com/matrix-org/matrix-doc/pull/2134 ) with assistance from [MSC2140](https://github.com/matrix-org/matrix-doc/pull/2140 ) for auth.
Note: this also changes all identity server requests to use JSON as a request body. URL encoded forms were allowed in v1 but deprecated in favour of JSON. v2 APIs do not allow URL encoded forms.
2019-08-21 14:08:46 -06:00
David Baker
898fa0e41b
Merge pull request #1018 from matrix-org/dbkr/getversions
...
Add getIdServer() & doesServerRequireIdServerParam()
2019-08-19 11:23:53 +01:00
David Baker
3c69b8511d
cache should expire TODO
2019-08-19 11:21:32 +01:00
David Baker
6843d86ecf
Truthiness not null check
...
Co-Authored-By: Travis Ralston <travpc@gmail.com >
2019-08-16 19:41:37 +01:00
David Baker
2e91200136
lint
...
also WE FIXED SOME WARNINGS! Go us.
2019-08-16 18:13:42 +01:00
David Baker
852304c417
Make requestToken endpoints work without ID Server
...
Hopefully with doc in appropriate functions
2019-08-16 18:09:29 +01:00
David Baker
ee752e3885
Add getIdServer() & doesServerRequireIdServerParam()
...
Remove individual cache for lazy loading and just cache the whole
versions response, then we can cache both of these flags
2019-08-16 15:02:49 +01:00
David Baker
2ae4d07971
Fix setIdentityServer
2019-08-15 12:01:40 +01:00
J. Ryan Stinnett
db18274f6e
Revert no TURN servers event
...
The intended flow has changed so we prompt about this case in context of making
a call, so this event is no longer needed.
2019-08-14 14:09:05 +01:00
J. Ryan Stinnett
172bad8b55
Support configuring ICE fallback at client init time
...
This adds a new client init option to configure whether an ICE fallback server
is allowed to be used.
2019-08-14 13:44:50 +01:00
J. Ryan Stinnett
dfe454e18f
Change ICE server fallback to opt-in
...
This changes the ICE server fallback to be disabled by default. The SDK consumer
will receive a new event in case the homeserver has no ICE servers of its own,
and can prompt the user to agree to the fallback if desired.
Part of https://github.com/vector-im/riot-web/issues/10173
2019-08-13 15:55:31 +01:00
J. Ryan Stinnett
3d8dd29b4c
Change STUN fallback to turn.matrix.org
...
This changes the STUN fallback server from a Google server to one hosted at
`turn.matrix.org`.
Part of https://github.com/vector-im/riot-web/issues/10173
2019-08-13 13:31:43 +01:00
J. Ryan Stinnett
c3ff213ec9
Improve WebRTC object logging
2019-08-13 13:29:59 +01:00
J. Ryan Stinnett
e80e5e1f8c
Firefox supports urls on RTCIceServer
...
There's no longer a need to translate ICE server objects for Firefox, as it
supports the `urls` array since version 37.
2019-08-13 13:15:56 +01:00
David Baker
f57df2bee5
Catch no ID server on other method
2019-08-12 16:06:37 +01:00
David Baker
b930638156
Be more verbose
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-08-12 16:00:40 +01:00
David Baker
39c1de19fc
Throw an exception if trying to do an ID server request with no ID server
...
Will help with https://github.com/vector-im/riot-web/issues/10540
2019-08-12 15:39:50 +01:00
David Baker
4c6d11d9ed
Add setIdentityServerUrl
...
Hopefully fairly self explanatory. The ID server URL can be changed
fairly readily, whereas the HS URL would require a different access
token etc.
2019-08-09 18:05:37 +01:00
Michael Telatynski
05d77a85c9
Merge pull request #1011 from matrix-org/t3chguy/add-rooms-roomid-report-eventid
...
Add matrix base API to report an event
2019-08-08 15:21:20 +01:00
Michael Telatynski
c21382d721
Add matrix base API to report an event
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-08-08 15:16:11 +01:00
J. Ryan Stinnett
8c15125e23
Fix POST body for v2 IS requests
...
POST bodies for v2 IS requests must be sent as JSON.
Part of https://github.com/vector-im/riot-web/issues/10159
2019-08-08 10:29:14 +01:00
J. Ryan Stinnett
64ddbd97dd
Merge pull request #1009 from matrix-org/jryans/user-settings-toggle-3pid
...
Add API for bulk lookup on the Identity Server
2019-08-07 18:05:58 +01:00
J. Ryan Stinnett
9c24bcb7a9
Tweak the type
2019-08-07 18:05:32 +01:00
J. Ryan Stinnett
8f016726f0
Add API for bulk lookup on the Identity Server
...
This adds support for querying `/bulk_lookup` on the IS to check several 3PIDs
at the same time.
Part of https://github.com/vector-im/riot-web/issues/10159
2019-08-07 17:45:13 +01:00
J. Ryan Stinnett
649fe7a490
Merge pull request #1000 from matrix-org/t3chguy/remove_authedRequestWithPrefix
...
Remove deprecated authedRequestWithPrefix and requestWithPrefix
2019-08-06 18:58:24 +01:00
J. Ryan Stinnett
f05bf3f845
Merge pull request #1007 from matrix-org/jryans/is-account-info
...
Add API for checking IS account info
2019-08-01 17:28:08 +01:00
J. Ryan Stinnett
4ebe60b2ad
Add API for checking IS account info
...
Part of https://github.com/vector-im/riot-web/issues/10452
2019-08-01 12:02:56 +01:00
Travis Ralston
c7be810e65
Appease the tests
2019-07-31 11:00:44 -06:00