riot-web/test
Hubert Chathi 1bb70c5b3b
Only report undecryptable events once (#12501)
* persist previously-reported event IDs as a bloom filter

* Pin to older `@types/seedrandom`

... to work around https://github.com/Callidon/bloom-filters/issues/72

* Inline `DecryptionFailureTracker.addDecryptionFailure`

* Remove redundant TRACK_INTERVAL

There really doesn't seem to be much point to this batching up of decryption
failure reports. We still call the analytics callback the same number of times.

* Rename `trackedEvents` to `reportedEvents`

* Fix incorrect documentation on `visibleEvents`

This *does* overlap with `failures`.

* Combine `addFailure` and `reportFailure`

* Calculate client properties before starting reporting

* Clear localstorage after each test

... otherwise they interfere

* Remove redundant comment

* Ensure that reports are cleared on a logout/login cycle

* make private const private and const

---------

Co-authored-by: Richard van der Hoff <richard@matrix.org>
2024-05-20 14:53:50 +00:00
..
@types
__snapshots__
accessibility
actions/handlers
audio
autocomplete
components Tooltip: migrate remaining tooltips from `AccessibleTooltipButton` to `AccessibleButton` (#12522) 2024-05-17 14:11:07 +00:00
contexts
dispatcher
editor
events
hooks Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
i18n
images
img Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
models
modules
notifications
settings Add analytics to activity toggles (#12418) 2024-04-22 16:15:29 +00:00
setup Locallazy: Convert even more strings (#11679) 2023-10-02 11:43:00 +01:00
stores Show the local echo in previews (#12451) 2024-04-24 09:22:07 +00:00
test-utils
toasts
utils Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
voice-broadcast Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
widgets
Avatar-test.ts
ContentMessages-test.ts
DecryptionFailureTracker-test.ts Only report undecryptable events once (#12501) 2024-05-20 14:53:50 +00:00
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
SecurityManager-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
submit-rageshake-test.ts
theme-test.ts
useTopic-test.tsx