element-web/test/test-utils
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.ts Fix seekbar position for zero length audio (#9949) 2023-01-23 17:28:31 +01:00
beacon.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
call.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
client.ts Mute broadcast chunk notifications 2023-01-03 10:16:32 +01:00
composer.ts Prevent starting a voice message while recording a broadcast (#9844) 2023-01-10 15:51:20 +01:00
console.ts Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
date.ts Include a file-safe room name and ISO date in chat exports (#9440) 2022-10-17 19:54:10 -06:00
events.ts Revert "Revert "Factor out `MessageEvent.from()` usage (#9882)"" 2023-01-10 13:43:15 -07:00
index.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
location.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
platform.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
poll.ts Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
relations.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
room.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
test-utils.ts Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
threads.ts Don't double-add events to threads in tests (#9742) 2022-12-12 15:43:42 -07:00
utilities.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
wrappers.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00