riot-web/test
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
..
@types
__snapshots__
accessibility
actions/handlers
audio
autocomplete
components Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
contexts
dispatcher
editor Deserialise spoilers back into slash command form (#11805) 2023-10-26 13:35:02 +00:00
events
hooks
i18n
images
img
models Fix misunderstanding of functional members (#11918) 2023-11-22 12:08:16 +00:00
modules
notifications
settings Default bundled emoji font to on (#11935) 2023-11-27 09:59:09 +00:00
setup
stores Right panel: view third party invite info without clearing history (#11934) 2023-11-27 22:30:57 +00:00
test-utils Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
toasts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
utils Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
voice-broadcast
widgets
Avatar-test.ts
ContentMessages-test.ts
DecryptionFailureTracker-test.js
DeviceListener-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts
Lifecycle-test.ts OIDC: revoke tokens on logout (#11718) 2023-10-15 21:35:25 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts
MediaDeviceHandler-test.ts
Notifier-test.ts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
PosthogAnalytics-test.ts Report crypto sdk in posthog (#11834) 2023-11-13 14:16:12 +00:00
PreferredRoomVersions-test.ts
Reply-test.ts
RoomNotifs-test.ts
Rooms-test.ts
ScalarAuthClient-test.ts
SdkConfig-test.ts
SlashCommands-test.tsx Disable upgraderoom command without developer mode enabled (#11744) 2023-10-13 09:48:32 +00:00
SlidingSyncManager-test.ts
Terms-test.tsx
TestSdkContext.ts
TextForEvent-test.ts
Unread-test.ts Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
UserActivity-test.ts
WorkerManager-test.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00
createRoom-test.ts Always allow call.member events on new rooms (#11948) 2023-11-28 12:13:31 +00:00
email-test.ts
globalSetup.ts
languageHandler-test.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
linkify-matrix-test.ts
predictableRandom.ts
setupTests.ts
slowReporter.js
theme-test.ts
useTopic-test.tsx