element-web/test/components/views/rooms
Andy Balaam 8b7f49e74e
Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903)
* Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk

* Remove unit tests that rely on receipt timestamps

Previously, if we found a receipt for an unknown event, we would use the
receipt timestamp and declare all events before that time to be read.
Now, we ignore such "dangling" receipts until we find the event they
refer to.

This new behaviour is more correct, but does lead to more messages being
considered unread.

This commit deletes tests that checked for the old behaviour.

* Check for a missing thread in determineUnreadState

* Fix incorrect way to find room timeline

* More realistic test setup to support new receipt code

* Update snapshot to expect a room to be unread when there are no receipts

* Formatting fixes

* Update snapshot to show menu and notif button

* Disable some flaky tests

* Disable some flaky tests

* Fix test to make a threaded receipt for an event that is actually in the thread

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2023-11-29 13:36:52 +00:00
..
EventTile
NotificationBadge Show knock rooms in the list (#11573) 2023-09-19 11:24:35 +00:00
RoomHeader Fix: Video Room Chat Header Button Removed (#11911) 2023-11-21 21:28:54 +00:00
__snapshots__ Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
wysiwyg_composer Prevent flaky Jest test by pre-loading WASM (#11975) 2023-11-29 10:11:53 +00:00
BasicMessageComposer-test.tsx Escape placeholder before injecting it into the style (#11607) 2023-09-19 05:58:53 +00:00
EditMessageComposer-test.tsx Default intentional mentions (#11602) 2023-09-14 11:36:15 +00:00
EventTile-test.tsx Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
ExtraTile-test.tsx
LegacyRoomHeader-test.tsx Add menu for legacy and element call in 1:1 rooms (#11910) 2023-11-22 10:35:51 +00:00
MemberList-test.tsx set disabled state on invite to room button in memberlist (#11893) 2023-11-21 01:43:32 +00:00
MemberTile-test.tsx Element-R: Use `MatrixClient.CryptoApi.getUserVerificationStatus` instead of `MatrixClient.checkUserTrust` in `MemberTile.tsx` (#11701) 2023-10-04 13:01:39 +00:00
MessageComposer-test.tsx
MessageComposerButtons-test.tsx
NewRoomIntro-test.tsx
PinnedEventTile-test.tsx
PresenceLabel-test.tsx Implement new unreachable state and fix broken string ref (#11748) 2023-11-07 10:14:30 +00:00
ReadReceiptGroup-test.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
RoomHeader-test.tsx Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
RoomKnocksBar-test.tsx Consolidate conjugation i18n strings (#11660) 2023-09-25 12:18:15 +01:00
RoomList-test.tsx
RoomListHeader-test.tsx
RoomPreviewBar-test.tsx
RoomPreviewCard-test.tsx
RoomTile-test.tsx Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
SearchBar-test.tsx
SearchResultTile-test.tsx Render timeline separator for late event groups (#11739) 2023-10-16 14:14:04 +00:00
SendMessageComposer-test.tsx Allow adding extra icons to the room header (#11799) 2023-11-01 12:03:10 +00:00
ThirdPartyMemberInfo-test.tsx
VoiceRecordComposerTile-test.tsx Default intentional mentions (#11602) 2023-09-14 11:36:15 +00:00