element-web/test/components/views/rooms
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__ Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
NotificationBadge Unify unread notification state determination (#9941) 2023-01-31 09:58:17 +00:00
wysiwyg_composer Fix link creation with backward selection (#9986) 2023-01-26 10:08:23 +00:00
BasicMessageComposer-test.tsx Convert enzyme to rtl: BasicMessageComposer (#9839) 2022-12-29 20:52:51 +00:00
DecryptionFailureBar-test.tsx Improve decryption error UI by consolidating error messages and providing instructions when possible (#9544) 2022-12-15 17:24:33 +00:00
EventTile-test.tsx Update to supportsThreads (#9907) 2023-01-30 12:20:11 +00:00
MemberList-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
MessageComposer-test.tsx Prevent starting a voice message while recording a broadcast (#9844) 2023-01-10 15:51:20 +01:00
MessageComposerButtons-test.tsx Replace some enzyme tests by @testing-library/react (#9822) 2022-12-23 10:46:14 +00:00
NewRoomIntro-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ReadReceiptGroup-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomHeader-test.tsx Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
RoomListHeader-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomPreviewBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomPreviewCard-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomTile-test.tsx Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
SearchBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SearchResultTile-test.tsx Fix "[object Promise]" appearing in HTML exports (#9975) 2023-01-30 14:31:32 +00:00
SendMessageComposer-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
VoiceRecordComposerTile-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00