element-portable/src/components/views
Eric Eastwood 2393510a7f
Fix getRelationsForEvent under TypeScript strict mode (#9558)
* Fix getRelationsForEvent tsc strictness

* Use shared type for GetRelationsForEvent

* Fix lint

* Add alternative type

* getRelationsForEvent is not required

* Relations are optional

* Reactions are optional

* We expect relations in these tests

* Add more protection if the eventID is not defined

* Allow null too

* Better test typing

* User ID is not necessary unless something is selected

* It's okay to [].includes(null)

* Null is as good as undefined here

* Null or undefined is good here

* We have some expectations for the tests

* The room and user can be undefined too

* Protec

* Reactions are optional

* Try match signatures

* Null or undefined

* More null or undefined

* Protec

* Fix typo (wrong variable)

* Remove optional params

See https://github.com/matrix-org/matrix-react-sdk/pull/9558#discussion_r1017515913

* Fix up last maaaaybe relevant lint

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-11-21 20:54:24 -07:00
..
audio_messages Show time left for voice broadcast recordings (#9564) 2022-11-10 10:53:49 +00:00
auth Make SonarCloud happier (#9545) 2022-11-07 13:45:34 +00:00
avatars Remove all usages of UNSAFE_* React methods (#9583) 2022-11-18 09:22:43 +00:00
beacon Convert some tests from Enzyme to RTL (#9483) 2022-10-24 09:06:20 +01:00
beta Don't show feedback prompts when that UIFeature is disabled (#9305) 2022-09-22 15:08:14 +01:00
context_menus Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
dialogs Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
directory Integrate searching public rooms and people into the new search experience (#8707) 2022-06-15 16:14:05 +02:00
elements Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
emojipicker Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
host_signup Auto fix 2021-10-22 17:23:37 -05:00
location Prevent useContextMenu isOpen from being true if the button ref goes away (#9418) 2022-10-17 17:42:04 +01:00
messages Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
right_panel Resilience fix for homeserver without thread notification support (#9565) 2022-11-10 18:01:19 +00:00
room_settings Move from browser-request to fetch (#9345) 2022-10-12 18:59:07 +01:00
rooms Fix getRelationsForEvent under TypeScript strict mode (#9558) 2022-11-21 20:54:24 -07:00
settings Device manager - add tooltip to device details toggle (#9594) 2022-11-21 08:24:56 +13:00
spaces Fix regressions around media uploads failing and causing soft crashes (#9549) 2022-11-07 11:56:43 +00:00
terms Make SonarCloud happier (#9545) 2022-11-07 13:45:34 +00:00
toasts Improve link buttons and inline link buttons styling (#8238) 2022-06-29 22:37:34 +00:00
typography add generic caption typography component (#9283) 2022-09-15 11:53:21 +02:00
user-onboarding Don't show feedback prompts when that UIFeature is disabled (#9305) 2022-09-22 15:08:14 +01:00
verification Step 1: Remove all usage of @replaceableComponent 2022-03-28 14:02:31 -06:00
voip Add voice broadcast pre-recoding PiP (#9548) 2022-11-10 09:38:48 +01:00