Germain
cfd865bf8b
Fetch server capabilities during client initialisation ( #2093 )
2022-01-11 11:53:30 +00:00
Michael Telatynski
5da562fa6f
Stop encrypting redactions as it isn't spec compliant ( #2098 )
2022-01-10 17:02:11 +00:00
Hugh Nimmo-Smith
f30be87879
Fix more function typings relating to key backup ( #2086 )
...
* Fix more function typings relating to key backup
* Use function overloads to specify allowed params
2021-12-23 17:23:31 +00:00
Germain
bae883a891
Update filters to reflect MSC3440 (threads) ( #2065 )
2021-12-22 13:58:21 +00:00
Hugh Nimmo-Smith
2aae2362e3
Fix incorrect TS return type for secret storage and key backup functions ( #2082 )
2021-12-20 16:52:50 +00:00
Michael Telatynski
dd0ca91aa9
Stop using v1-prefixed /hierarchy API due to Synapse bugs ( #2080 )
2021-12-17 15:33:55 +00:00
Michael Telatynski
3eaed30446
Iterate typing around sync, usage limits and errors ( #2077 )
2021-12-16 09:57:07 +00:00
Eric Eastwood
dd23a1a401
Add support for MSC3030 /timestamp_to_event ( #2072 )
...
- `/jumptodate` slash command is being worked on in https://github.com/matrix-org/matrix-react-sdk/pull/7372
- Jump to date headers are being worked on in https://github.com/matrix-org/matrix-react-sdk/pull/7339
Related to https://github.com/vector-im/element-web/issues/7677
Part of MSC3030: https://github.com/matrix-org/matrix-doc/pull/3030
Experimental Synapse implementation added in https://github.com/matrix-org/synapse/pull/9445
2021-12-15 05:06:26 -06:00
Michael Telatynski
6ac84a2465
Use v1 prefix for /hierarchy API, falling back to both previous variants ( #2022 )
2021-12-15 09:56:07 +00:00
Michael Telatynski
df11a9e832
Fix sending undefined query args to Synapse ( #2070 )
2021-12-14 10:38:28 -07:00
Michael Telatynski
feb83ba161
Convert http-api to Typescript ( #2063 )
2021-12-14 15:34:50 +00:00
Michael Telatynski
963c7690b6
Iterate typing to work towards noImplicitAny ( #2061 )
2021-12-14 14:32:35 +00:00
Michael Telatynski
169b6b5572
Filter out falsey opts in /relations API hits ( #2059 )
2021-12-13 15:38:03 +00:00
Aaron R
80aaa6c32b
Fix imports to work with new lint rules ( #2003 )
...
* Add eslint-plugin-import
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Autofix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Manual fix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-12-09 15:57:43 -07:00
Michael Telatynski
4e9fe8f53f
Fix types ( #2056 )
2021-12-09 15:44:07 +00:00
Ajay Bura
f926a2f777
Fix paginateEventTimeline resolve to boolean ( #2054 )
...
* Fix paginateEventTimeline resolve to boolean
Earlier paginateEventTimeline used to resolve to chunk instead of returning boolean. Now it return boolean as specified in doc.
* added type
2021-12-09 20:00:55 +05:30
Michael Telatynski
f8097221e6
Improve typing ( #2055 )
2021-12-09 14:22:58 +00:00
Germain
72bc13eb39
Allow to omit optional params for /relations calls ( #2053 )
2021-12-08 08:23:53 +00:00
Germain
2206b80e65
Threads notifications after app startup ( #2043 )
2021-12-07 10:58:34 +00:00
Michael Telatynski
b716cde9b5
Add method to fetch /account/whoami ( #2046 )
2021-12-02 13:43:15 +00:00
Germain
1c895432ed
Fix backwards compatibility for redactEvent ( #2039 )
2021-11-24 15:42:10 +00:00
Germain
ddd6a05198
Make local echo work for threads ( #2026 )
2021-11-24 08:19:17 +00:00
Will Hunt
9f97992196
getStateEvent should return any ( #2032 )
...
* getStateEvent returns any
getStateEvent returns the content of an event, not the whole state event as per https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-rooms-roomid-state-eventtype-statekey
* Make the return type Record<string, any>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2021-11-23 13:54:54 +00:00
Michael Telatynski
b2d83c1f80
Iterate type definitions ( #2029 )
2021-11-19 17:35:09 +00:00
Germain
ad8a93dde8
Fix check supportExperimentalThreads ( #2017 )
2021-11-10 10:54:13 +00:00
Aaron R
9d9d9e2cfa
Fix edit history being broken after editing an unencrypted event with an encrypted event ( #2013 )
2021-11-08 08:55:41 +00:00
Germain
43bc09f392
Copy relations to thread root in the thread timeline ( #2012 )
2021-11-05 14:16:45 +00:00
Germain
195498e9db
Make events pagination responses parse threads ( #2011 )
2021-11-04 11:29:14 +00:00
Travis Ralston
6a12c265cf
PSFD-455: Try to set a sender on search result events if possible ( #2004 )
...
This is to ensure that search results have aesthetic information such as display name and avatar. Though the membership event won't be in context for when the event was sent, it'll at least be something better than a bare user ID.
2021-10-28 07:48:27 -06:00
Christian Paul
51c776f51e
Correct TypeScript signature of client.sendCompleteEvent ( #1997 )
...
* Correct TypeScript signature of client.sendCompleteEvent
* Revert renaming txnId to txnIdOrCallback
2021-10-25 14:25:38 -06:00
Hubert Chathi
0385f265e8
Mark old verification methods as deprecated ( #1994 )
...
The old verification methods start a verification by sending an
`m.key.verification.start` message, rather than an `m.key.verification.request`
message. This behaviour is deprecated in the
spec (https://github.com/matrix-org/matrix-doc/pull/3122 ), so these functions
should be deprecated too.
2021-10-21 16:10:13 -04:00
Michael Telatynski
4c39ce8c96
Add method to fetch the MSC3266 Room Summary of a Room ( #1988 )
2021-10-19 16:13:29 +01:00
Šimon Brandner
7559a10526
Make opts in importRoomKeys optional
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:36:11 +02:00
Travis Ralston
785a3e3381
Remove excess logging from getRoomUpgradeHistory()
...
On large accounts this can now cause a massive amount of spam. It's not really providing any value in day-to-day debugging either.
2021-10-08 10:28:20 -06:00
Paulo Pinto
1485969493
Return IJoinedRoomsResponse from getJoinedRooms(), instead of string[]
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com >
2021-09-29 11:45:01 +01:00
Šimon Brandner
f05a0615f7
Export IRequestMsisdnTokenResponse
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-27 09:45:07 +02:00
Aaron Raimist
35ee58dfe1
Switch to /kick API
...
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-09-17 01:05:21 -05:00
Germain
6ca4694fe6
Merge pull request #1907 from matrix-org/gsouquet/ts-last-push
2021-09-15 08:30:52 +01:00
Germain
062287e270
Merge pull request #1913 from matrix-org/gsouquet/ts-security
2021-09-15 08:27:29 +01:00
Travis Ralston
df039d3d8c
Merge pull request #1911 from SimonBrandner/feature/media-handling
...
Improve `MatrixCall` media handling and internally remove `CallType`s
2021-09-14 14:40:45 -06:00
Robert Long
14ed8a110c
Update src/client.ts
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2021-09-14 10:50:50 -07:00
Germain Souquet
7daab62850
Types fixes for CreateKeyBackupDialog TS migration
2021-09-12 09:21:04 +02:00
Germain Souquet
fed0ced89d
Type fixes for CreateSecretStorageDialog TS migration
2021-09-12 08:56:31 +02:00
Germain Souquet
edd614dd0c
fix cyclic dependencies for AutoDiscoveryActionEnum
2021-09-11 16:17:40 +01:00
Germain Souquet
375b228bb2
fix missing types and linting errors
2021-09-11 16:06:29 +01:00
Šimon Brandner
1bd7de5a18
Use MediaHandler
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-11 08:21:57 +02:00
Robert Long
b52f3b1c57
Add types for the MatrixClient register method
2021-09-09 17:00:45 -07:00
Germain Souquet
a508c8d236
Make supportsExperimentalThreads calls more resilient
2021-09-09 18:40:15 +01:00
Germain Souquet
48a9db0315
Add helper to check threads support
2021-09-09 17:24:34 +01:00
Michael Telatynski
b6c857e2a2
Convert crypto/verification/* to Typescript
2021-09-08 12:34:44 +01:00