element-web/test/stores
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
..
__snapshots__ Handle starting a call while listen to a broadcast (#9764) 2022-12-19 08:44:19 +00:00
notifications Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
right-panel Apply prettier formatting 2022-12-12 12:24:14 +01:00
room-list More tests 2023-01-20 13:27:03 +00:00
widgets Replace broadcast instance with SDKContext (#9824) 2022-12-27 08:39:26 +01:00
ActiveWidgetStore-test.ts Fix infinite loop when pinning/unpinning persistent widgets (#8396) 2022-04-25 08:29:54 -04:00
AutoRageshakeStore-test.ts Add test coverage (#9928) 2023-01-18 15:49:34 +01:00
MemberListStore-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
OwnBeaconStore-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomViewStore-test.ts Update to supportsThreads (#9907) 2023-01-30 12:20:11 +00:00
SpaceStore-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
ToastStore-test.ts test toastStore (#9823) 2022-12-23 09:35:41 +00:00
TypingStore-test.ts 🧵 Enable threads by default (#9736) 2022-12-13 15:09:15 +00:00
VoiceRecordingStore-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
WidgetLayoutStore-test.ts Add test coverage (#9928) 2023-01-18 15:49:34 +01:00