mirror of https://github.com/vector-im/riot-web
8b7f49e74e
* 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> |
||
---|---|---|
.. | ||
@types | ||
__snapshots__ | ||
accessibility | ||
actions/handlers | ||
audio | ||
autocomplete | ||
components | ||
contexts | ||
dispatcher | ||
editor | ||
events | ||
hooks | ||
i18n | ||
images | ||
img | ||
models | ||
modules | ||
notifications | ||
settings | ||
setup | ||
stores | ||
test-utils | ||
toasts | ||
utils | ||
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 | ||
Markdown-test.ts | ||
MatrixClientPeg-test.ts | ||
MediaDeviceHandler-test.ts | ||
Notifier-test.ts | ||
PosthogAnalytics-test.ts | ||
PreferredRoomVersions-test.ts | ||
Reply-test.ts | ||
RoomNotifs-test.ts | ||
Rooms-test.ts | ||
ScalarAuthClient-test.ts | ||
SdkConfig-test.ts | ||
SlashCommands-test.tsx | ||
SlidingSyncManager-test.ts | ||
Terms-test.tsx | ||
TestSdkContext.ts | ||
TextForEvent-test.ts | ||
Unread-test.ts | ||
UserActivity-test.ts | ||
WorkerManager-test.ts | ||
createRoom-test.ts | ||
email-test.ts | ||
globalSetup.ts | ||
languageHandler-test.tsx | ||
linkify-matrix-test.ts | ||
predictableRandom.ts | ||
setupTests.ts | ||
slowReporter.js | ||
theme-test.ts | ||
useTopic-test.tsx |