element-web/src/hooks
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
..
room Apply prettier formatting 2022-12-12 12:24:14 +01:00
spotlight Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useAccountData.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useAnimation.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useAsyncMemo.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useAudioDeviceSelection.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useCall.ts Redesign the picture-in-picture window (#9800) 2023-01-04 04:44:38 +00:00
useDispatcher.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useEventEmitter.ts Use useTypedEventEmitterState for broadcasts (#9947) 2023-01-20 13:33:00 +01:00
useFavouriteMessages.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useFocus.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useHover.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useIsEncrypted.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useIsInitialSyncComplete.ts New User Onboarding Task List (#9083) 2022-07-29 11:43:29 +00:00
useLatestResult.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useLocalEcho.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useLocalStorageState.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useProfileInfo.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
usePublicRoomDirectory.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useRoomMembers.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useRoomNotificationState.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useRoomState.ts Prefer RoomStateEvent.Update where possible as it fires far less (#7878) 2022-02-24 14:39:25 +00:00
useSettings.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useSlidingSyncRoomSearch.ts TS errors 2023-01-20 10:32:53 +00:00
useSmoothAnimation.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useSpaceResults.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useStateArray.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useStateCallback.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useStateToggle.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useTimeout.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useTimeoutToggle.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useUnreadNotifications.ts Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
useUserDirectory.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useUserOnboardingContext.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
useUserOnboardingTasks.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00