element-web/test/components/views
Clark Fischer 431afaafc6
Unify unread notification state determination (#9941)
* Add tests for unread notification facilities

Add some tests to guarantee some consistency in `useUnreadNotifications` and
`RoomNotificationState`.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Add RoomNotifs#determineUnreadState

Intended as a singular replacement for the divergent implementations before.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Unify room unread state determination

Have both the class-based facility and the hook use the new unified logic in
`RoomNotifs#determineUnreadState`.

Addresses https://github.com/vector-im/element-web/issues/24229

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

---------

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-01-31 09:58:17 +00:00
..
audio_messages Fix seekbar position for zero length audio (#9949) 2023-01-23 17:28:31 +01:00
auth Support registration tokens (#7275) 2023-01-24 12:02:07 +00:00
avatars Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
beacon Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
beta Apply prettier formatting 2022-12-12 12:24:14 +01:00
context_menus Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
dialogs Use CopyableText in devtools (#9993) 2023-01-30 17:01:54 +00:00
elements Fix error when viewing source of redacted events (#9914) 2023-01-15 16:22:59 +00:00
location Migrate Enzyme to RTL (#9842) 2022-12-29 15:35:19 +00:00
messages Convert RoomCreate to a functional component (#9999) 2023-01-30 10:02:32 +00:00
right_panel Add ignore user confirmation dialog (#6116) 2023-01-31 09:42:18 +00:00
rooms Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
settings Update to supportsThreads (#9907) 2023-01-30 12:20:11 +00:00
spaces Enzyme to rtl: QuickThemeSwitcher (#9843) 2022-12-29 12:44:18 +00:00
typography Apply prettier formatting 2022-12-12 12:24:14 +01:00
user-onboarding Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
voip Redesign the picture-in-picture window (#9800) 2023-01-04 04:44:38 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00