element-web/test
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 Use server side relations for voice broadcasts (#9534) 2022-11-07 14:19:49 +00:00
__snapshots__ Handle starting a call while listen to a broadcast (#9764) 2022-12-19 08:44:19 +00:00
accessibility Apply prettier formatting 2022-12-12 12:24:14 +01:00
actions/handlers Apply prettier formatting 2022-12-12 12:24:14 +01:00
audio Apply prettier formatting 2022-12-12 12:24:14 +01:00
autocomplete Apply prettier formatting 2022-12-12 12:24:14 +01:00
components Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
contexts Add voice broadcast pre-recoding PiP (#9548) 2022-11-10 09:38:48 +01:00
editor Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
events Improve some voice broadcast tests (#9786) 2022-12-16 18:23:29 +00:00
hooks Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
i18n Fix languages.json 2017-06-01 21:10:32 +02:00
i18n-test Apply prettier formatting 2022-12-12 12:24:14 +01:00
images Add support for Animated (A)PNG (#8158) 2022-03-28 09:38:54 +01:00
img Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
models Make calls automatically disconnect if the widget disappears (#9862) 2023-01-04 15:51:42 -05:00
modules Apply prettier formatting 2022-12-12 12:24:14 +01:00
notifications Apply prettier formatting 2022-12-12 12:24:14 +01:00
settings Add test coverage (#9928) 2023-01-18 15:49:34 +01:00
setup Apply prettier formatting 2022-12-12 12:24:14 +01:00
stores Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
test-utils Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
toasts Apply prettier formatting 2022-12-12 12:24:14 +01:00
utils Fix MessageEditHistoryDialog crashing on complex input (#10018) 2023-01-31 09:55:20 +00:00
voice-broadcast Implement more robust broadcast chunk header detection (#10006) 2023-01-31 09:48:30 +01:00
Avatar-test.ts Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
ContentMessages-test.ts Fixes empty content type during upload (#9848) 2022-12-30 08:34:38 +00:00
DecryptionFailureTracker-test.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
DeviceListener-test.ts Device manager - use deleteAccountData to prune device manager client information events (#9734) 2022-12-14 04:59:23 +00:00
HtmlUtils-test.tsx Replace some enzyme tests by @testing-library/react (#9822) 2022-12-23 10:46:14 +00:00
Image-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
KeyBindingsManager-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
LegacyCallHandler-test.ts Confirm listen to a broadcast while recording (#9831) 2023-01-02 12:21:33 +00:00
Markdown-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
MatrixClientPeg-test.ts Add a config flag to enable the rust crypto-sdk (#9759) 2022-12-16 17:10:26 +00:00
MediaDeviceHandler-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
Notifier-test.ts Update to supportsThreads (#9907) 2023-01-30 12:20:11 +00:00
PosthogAnalytics-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
PreferredRoomVersions-test.ts Replace MSC3244 support with in-client room version checking (#9018) 2022-07-08 00:32:38 -06:00
Reply-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomNotifs-test.ts Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
Rooms-test.ts Prevent unnecessary m.direct updates (#9805) 2022-12-21 09:30:08 -07:00
ScalarAuthClient-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
SdkConfig-test.ts Show time left for voice broadcast recordings (#9564) 2022-11-10 10:53:49 +00:00
SlashCommands-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SlidingSyncManager-test.ts Add additional tests 2023-01-19 15:02:48 +00:00
Terms-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
TestSdkContext.ts Add voice broadcast playback pip (#9603) 2022-11-24 09:08:41 +01:00
TextForEvent-test.ts Implement broadcast message preview (#9762) 2022-12-16 11:01:16 +00:00
Unread-test.ts Update to supportsThreads (#9907) 2023-01-30 12:20:11 +00:00
UserActivity-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
createRoom-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
globalSetup.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
languageHandler-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
linkify-matrix-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
setupTests.js Move from `browser-request` to `fetch` (#9345) 2022-10-12 18:59:07 +01:00
slowReporter.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
theme-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
useTopic-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00