element-web-Github/test/components/views/context_menus
Germain be281fd735
Fix threads fallback incorrectly targets root event (#9229)
* Use RelationType enum instead of hardcoded value

* Fix threads replies fallback to target last reply

* Only unsubscribe from threads events if needed

* fix strict null check

* fix strict null checks

* strict null checks

* fix typing

* Unsubscribe listeners if new thread is `null`

Co-authored-by: Faye Duxovni <fayed@element.io>

* Update strict null checks

* Type HTMLElement as nullable

* Add thread fallback integration test

* lint fix

* Update snapshots

* Add test after changing thread

* Remove test comment

* update snapshot

* fix room context test utility

* Add ThreadListContextMenu test

* lint fix

* fix thread rendering

Co-authored-by: Faye Duxovni <fayed@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-10-20 12:48:25 +01:00
..
__snapshots__ Move from browser-request to fetch (#9345) 2022-10-12 18:59:07 +01:00
ContextMenu-test.tsx Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00
EmbeddedPage-test.tsx Move from browser-request to fetch (#9345) 2022-10-12 18:59:07 +01:00
MessageContextMenu-test.tsx fix threadsupport type issues in tests (#9359) 2022-10-06 08:35:06 +00:00
SpaceContextMenu-test.tsx Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00
ThreadListContextMenu-test.tsx Fix threads fallback incorrectly targets root event (#9229) 2022-10-20 12:48:25 +01:00