Janne Mareike Koschinski
e10db6f7e9
Implement MSC 3981 ( #3248 )
...
* Implement MSC 3891
* Add necessary mocks to tests
* Only set recurse parameter if supported
* fix: address review comments
* task: unify unstable prefix code between client and tests
* Add test for relations recursion
* Make prettier happier :)
* Revert "task: unify unstable prefix code between client and tests"
This reverts commit f7401e05
* Fix broken tests
2023-04-27 13:01:48 +00:00
Germain
c142232f4d
Stop labelling threads as experimental ( #3064 )
2023-01-30 11:25:27 +00:00
Janne Mareike Koschinski
4f86eee250
Threads are missing from the timeline ( #2996 )
2022-12-19 10:32:37 +00:00
Janne Mareike Koschinski
39e127b4e3
Write test to validate #2971 ( #2972 )
2022-12-14 13:01:52 +01:00
Janne Mareike Koschinski
193c38523c
Fix messages loaded during initial fetch ending up out of order ( #2971 )
...
* Fix messages loaded during initial fetch ending up out of order
2022-12-13 15:23:43 +01:00
Janne Mareike Koschinski
8293011ee2
Fix #23916 : Prevent edits of the last message in a thread getting lost ( #2951 )
...
* Fix issue where the root event of a thread had to be loaded in a complicated way
* Fix issue where edits to the last event of a thread would get lost
* Fix issue where thread reply count would desync
* Refactor relations pagination mocking for tests
2022-12-12 18:22:16 +01:00
Michael Weimann
349c2c2587
Apply prettier formatting
2022-12-09 09:38:20 +01:00
Michael Telatynski
8d018f9c2d
Enable noImplicitAny ( #2895 )
...
* Stash noImplicitAny work
* Enable noImplicitAny
* Update olm
* Fun
* Fix msgid stuff
* Fix tests
* Attempt to fix Browserify
2022-12-06 18:21:44 +00:00
Janne Mareike Koschinski
8a7fd270e4
Move updated threads to the end of the thread list ( #2923 )
...
* Move updated threads to the end of the thread list
* Write new tests
2022-12-02 17:11:18 +01:00
Janne Mareike Koschinski
43bfa0c020
Switch to stable /relations endpoint, stop using unspecced original_event field ( #2911 )
...
* Switch to stable /relations endpoint, stop using unspecced original_event field
* Adapt the tests to the changed endpoint
2022-12-02 15:01:15 +01:00
Germain
bd4589fcc4
Hide pending events in thread timelines ( #2843 )
2022-11-08 10:04:20 +00:00
Janne Mareike Koschinski
068fbb7660
Loading threads with server-side assistance ( #2735 )
...
* Fix bug where undefined vs null in pagination tokens wasn't correctly handled
* Fix bug where thread list results were sorted incorrectly
* Allow removing the relationship of an event to a thread
* Implement feature detection for new threads MSCs and specs
* Prefix dir parameter for threads pagination if necessary
* Make threads conform to the same timeline APIs as any other timeline
* Extract thread timeline loading out of thread class
* fix thread roots not being updated correctly
* fix jumping to events by link
* implement new thread timeline loading
* Fix fetchRoomEvent incorrect return type
Co-authored-by: Germain <germains@element.io >
Co-authored-by: Germain <germain@souquet.com >
2022-10-28 13:48:14 +02:00
Michael Telatynski
867a0ca7ee
Apply more strict typescript around the codebase ( #2778 )
...
* Apply more strict typescript around the codebase
* Fix tests
* Revert strict mode commit
* Iterate strict
* Iterate
* Iterate strict
* Iterate
* Fix tests
* Iterate
* Iterate strict
* Add tests
* Iterate
* Iterate
* Fix tests
* Fix tests
* Strict types be strict
* Fix types
* detectOpenHandles
* Strict
* Fix client not stopping
* Add sync peeking tests
* Make test happier
* More strict
* Iterate
* Stabilise
* Moar strictness
* Improve coverage
* Fix types
* Fix types
* Improve types further
* Fix types
* Improve typing of NamespacedValue
* Fix types
2022-10-21 11:44:40 +01:00
Michael Telatynski
12a4d2a749
Make more of the code conform to Strict TSC ( #2756 )
2022-10-14 15:57:08 +01:00
Kerry
a1b046b5d8
test typescriptification - spec/integ ( #2714 )
...
* renamed: spec/integ/devicelist-integ.spec.js -> spec/integ/devicelist-integ.spec.ts
* fix ts issue in devicelist-integ.spec
* renamed: spec/integ/matrix-client-event-emitter.spec.js -> spec/integ/matrix-client-event-emitter.spec.ts
* ts issues in matrix-client-event-emitter integ
* strict fixes
* renamed: spec/integ/matrix-client-methods.spec.js -> spec/integ/matrix-client-methods.spec.ts
* fix ts issues
* renamed: spec/integ/matrix-client-opts.spec.js -> spec/integ/matrix-client-opts.spec.ts
* ts fixes in matrix-client-methods / matrix-client-opts
* renamed: spec/integ/matrix-client-room-timeline.spec.js -> spec/integ/matrix-client-room-timeline.spec.ts
* most ts fixes in matrix-client-room-timeline
* remove obsoleted prev_events from mockenvents
* make xmlhttprequest ts
* strict errors in matrix-client-event-timeline spec
* strict in devicelist
* strict fixes in matrix-client-crypto.spec
* strict fixes in spec/integ/matrix-client-room-timeline
* strict issues in matrix-client-opts.specc
* strict issues in matrix-client-syncing
* strict issues in spec/integ/megolm
* strict fixes in spec/integ/matrix-client-retrying.spec
* strict fixes for spec/integ/sliding-sync
* eslint fixes
* more strict errors sneaking in from develop
* kill al httpbackends
* kill matrix-client-methods.spec httpbackend properly
2022-10-06 08:11:25 +02:00
Janne Mareike Koschinski
3a3dcfb254
Load Thread List with server-side assistance (MSC3856) ( #2602 )
...
* feature detection code for thread list api
* fix bug where createThreadsTimelineSets would sometimes return nothing
* initial implementation of thread listing msc
* tests for thread list pagination
2022-10-05 23:10:42 +02:00
Michael Telatynski
8599a98b47
Fix backpagination at end logic being spec non-conforming ( #2680 )
2022-09-21 16:35:07 +01:00
Faye Duxovni
3935152d08
Properly re-insert room ID in bundled thread relation messages from sync ( #2505 )
...
Events returned by the `/sync` endpoint, including relations bundled with other events, may have their `room_id`s stripped out. This causes decryption errors if the IDs aren't repopulated.
Fixes vector-im/element-web#22094 .
2022-07-08 22:43:38 +00:00