riot-web/src
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
..
@types
accessibility
actions
async-components/views/dialogs
audio
autocomplete
components
contexts
customisations
dispatcher
editor
effects
emojipicker
events
hooks Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
i18n/strings
indexing
integrations
mjolnir
models
modules
notifications
performance
rageshake
resizer
settings
stores Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
toasts
usercontent
utils
voice-broadcast
widgets
workers
AddThreepid.ts
AsyncWrapper.tsx
Avatar.ts
BasePlatform.ts
BlurhashEncoder.ts
ContentMessages.ts
DateUtils.ts
DecryptionFailureTracker.ts
DeviceListener.ts
Editing.ts
HtmlUtils.tsx
IConfigOptions.ts
IdentityAuthClient.tsx
ImageUtils.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
LegacyCallHandler.tsx
Lifecycle.ts
Livestream.ts
Login.ts
Markdown.ts
MatrixClientPeg.ts
MediaDeviceHandler.ts
Modal.tsx
NodeAnimator.tsx
Notifier.ts
PageTypes.ts
PasswordReset.ts
PlatformPeg.ts
PosthogAnalytics.ts
PosthogTrackers.ts
Presence.ts
Registration.tsx
Resend.ts
Roles.ts
RoomAliasCache.ts
RoomInvite.tsx
RoomNotifs.ts Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
Rooms.ts
ScalarAuthClient.ts
ScalarMessaging.ts
SdkConfig.ts
Searching.ts
SecurityManager.ts
SendHistoryManager.ts
SlashCommands.tsx
SlidingSyncManager.ts
Terms.ts
TextForEvent.tsx
Unread.ts
UserActivity.ts
UserAddress.ts
Views.ts
VoipUserMapper.ts
WhoIsTyping.ts
boundThreepids.ts
call-types.ts
createRoom.ts
email.ts
emoji.ts
identifiers.ts
index.ts
languageHandler.tsx
linkify-matrix.ts
phonenumber.ts
sendTimePerformanceMetrics.ts
sentry.ts
shouldHideEvent.ts
theme.ts
verification.ts