riot-web/test
Richard van der Hoff 46eb34a55d
Kill off references to deprecated `getStoredDevice` and `getStoredDevicesForUser` (#11152)
* Use new `CryptoEvent.VerificationRequestReceived` event

https://github.com/matrix-org/matrix-js-sdk/pull/3514 deprecates
`CryptoEvent.VerificationRequest` in favour of
`CryptoEvent.VerificationRequestReceived`. Use the new event.

* Factor out `getDeviceCryptoInfo` function

I seem to be writing this logic several times, so let's factor it out.

* Factor out `getUserDeviceIds` function

Another utility function

* VerificationRequestToast: `getStoredDevice` -> `getDeviceCryptoInfo`

* SlashCommands: `getStoredDevice` -> `getDeviceCryptoInfo`

* MemberTile: `getStoredDevicesForUser` -> `getUserDeviceIds`

* Remove redundant mock of `getStoredDevicesForUser`
2023-06-28 12:39:34 +00:00
..
@types Use server side relations for voice broadcasts (#9534) 2022-11-07 14:19:49 +00:00
__snapshots__ Refactor SlashCommands to not use MatrixClientPeg (#10905) 2023-05-25 16:29:48 +01:00
accessibility Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
actions/handlers Move session manager out of beta (#10968) 2023-05-26 01:58:28 +00:00
audio Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
autocomplete Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
components Kill off references to deprecated `getStoredDevice` and `getStoredDevicesForUser` (#11152) 2023-06-28 12:39:34 +00:00
contexts Add `UserProfilesStore`, `LruCache` and cache for user permalink profiles (#10425) 2023-03-27 10:07:43 +02:00
dispatcher Remove flux dependency (#10313) 2023-03-08 14:19:05 +00:00
editor Fix caret jump when backspacing into empty line at beginning of editor (#11128) 2023-06-23 15:24:05 +00:00
events Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
hooks Implement new model, hooks and reconcilation code for new GYU notification settings (#11089) 2023-06-17 00:17:51 +00:00
i18n
i18n-test Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
images Add support for Animated (A)PNG (#8158) 2022-03-28 09:38:54 +01:00
img
models Implement new model, hooks and reconcilation code for new GYU notification settings (#11089) 2023-06-17 00:17:51 +00:00
modules Fixes user authentication when registering via the module API (#10257) 2023-03-07 16:24:44 +01:00
notifications Apply prettier formatting 2022-12-12 12:24:14 +01:00
settings Conform more of the codebase to `strictNullChecks` (#11100) 2023-06-22 14:39:36 +01:00
setup Fix some features not being configurable via `features` (#10276) 2023-03-03 13:31:51 +00:00
stores Conform more of the codebase to `strictNullChecks` (#11100) 2023-06-22 14:39:36 +01:00
test-utils Kill off references to deprecated `getStoredDevice` and `getStoredDevicesForUser` (#11152) 2023-06-28 12:39:34 +00:00
toasts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
utils Kill off references to deprecated `getStoredDevice` and `getStoredDevicesForUser` (#11152) 2023-06-28 12:39:34 +00:00
voice-broadcast Prefer MatrixClientContext over MatrixClientPeg (#10986) 2023-06-14 13:42:07 +01:00
widgets Add config to skip widget_build_url for DM rooms (#11044) 2023-06-06 14:07:51 +00:00
Avatar-test.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
ContentMessages-test.ts Implement MSC3952: intentional mentions (#9983) 2023-03-23 11:47:40 +00:00
DecryptionFailureTracker-test.js Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
DeviceListener-test.ts Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
HtmlUtils-test.tsx Use grapheme-splitter instead of lodash for saving emoji from being ripped apart (#10976) 2023-05-25 08:32:20 +00:00
Image-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
KeyBindingsManager-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
LegacyCallHandler-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Markdown-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
MatrixClientPeg-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
MediaDeviceHandler-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Notifier-test.ts Fix spurious notifications on non-live events (#11133) 2023-06-27 09:39:55 +00:00
PosthogAnalytics-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
PreferredRoomVersions-test.ts Replace MSC3244 support with in-client room version checking (#9018) 2022-07-08 00:32:38 -06:00
Reply-test.ts add fallback reply for poll start (#10380) 2023-03-16 21:27:56 +00:00
RoomNotifs-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
Rooms-test.ts Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
ScalarAuthClient-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
SdkConfig-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
SlashCommands-test.tsx Refactor SlashCommands to not use MatrixClientPeg (#10905) 2023-05-25 16:29:48 +01:00
SlidingSyncManager-test.ts Fix jest/no-conditional-expect lint and enable it (#10307) 2023-03-07 13:58:10 +00:00
Terms-test.tsx Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
TestSdkContext.ts Add voice broadcast playback pip (#9603) 2022-11-24 09:08:41 +01:00
TextForEvent-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Unread-test.ts Use MatrixClientPeg::safeGet for strict typing (#10989) 2023-06-21 17:29:44 +01:00
UserActivity-test.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
WorkerManager-test.ts Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
createRoom-test.ts Add .well-known config option to force disable encryption on room creation (#11120) 2023-06-21 21:50:01 +00:00
email-test.ts Factor out basic email check (#10244) 2023-02-28 10:39:35 +01:00
globalSetup.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
languageHandler-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
linkify-matrix-test.ts Update linkify to 4.1.1 (#11132) 2023-06-27 11:23:37 +00:00
setupTests.js Kill off enzyme in preference of react testing library (#10255) 2023-03-06 15:17:46 +00:00
slowReporter.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
theme-test.ts Integrate compound design tokens (#11091) 2023-06-14 15:49:14 +00:00
useTopic-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00