Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make createThread more resilient when missing rootEvent #2207

Merged
merged 3 commits into from
Feb 28, 2022

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Feb 28, 2022

Fixes element-hq/element-web#21130

Also migrated room.spec.js to TypeScript. Important to note that createMockClient do not fulfill the MatrixClient interface. It was too big of a job to undertake for this fix, hence the as any that you can spot here and there.

Better viewed adding ?w=1 to the URL to hide the whitespaces diff, as it looks like our ESLint rules are slightly different for JS and TS files.


Here's what your changelog entry will look like:

🐛 Bug Fixes

@germain-gg germain-gg requested a review from a team as a code owner February 28, 2022 09:55
@germain-gg germain-gg merged commit 124bfc9 into develop Feb 28, 2022
@germain-gg germain-gg deleted the gsouquet/create-thread-21130 branch February 28, 2022 10:02
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Mar 17, 2022
* Improve typing around event emitter handlers ([\matrix-org#2180](matrix-org#2180)).
* Fix defer not supporting resolving with a Promise<T> ([\matrix-org#2216](matrix-org#2216)).
* add LocationAssetType enum ([\matrix-org#2214](matrix-org#2214)).
* Support for mid-call devices changes ([\matrix-org#2154](matrix-org#2154)). Contributed by @SimonBrandner.
* Add new room state emit RoomStateEvent.Update for lower-frequency hits ([\matrix-org#2192](matrix-org#2192)).
* Fix wrong event_id being sent for m.in_reply_to of threads ([\matrix-org#2213](matrix-org#2213)).
* Fix wrongly asserting that PushRule::conditions is non-null ([\matrix-org#2217](matrix-org#2217)).
* Make createThread more resilient when missing rootEvent ([\matrix-org#2207](matrix-org#2207)). Fixes element-hq/element-web#21130.
* Fix bug with the /hierarchy API sending invalid requests ([\matrix-org#2201](matrix-org#2201)). Fixes element-hq/element-web#21170.
* fix relation sender filter ([\matrix-org#2196](matrix-org#2196)). Fixes element-hq/element-web#20877.
* Fix bug with one-way audio after a transfer ([\matrix-org#2193](matrix-org#2193)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading to 2022021801 nightly has made most of my rooms vanish and/or corrupt
3 participants