riot-web/test/unit-tests
Hubert Chathi c2ce7dbc5e
Display a warning when an unverified user's identity changes (#28211)
* display a warning when an unverified user's identity changes

* use Compound and make comments into doc comments

* refactor to use functional component

* split into multiple hooks

* apply minor changes from review

* use Crypto API to determine if room is encrypted

* apply changes from review

* change initialisation status to a tri-state rather than a boolean

* fix more race conditions, and apply changes from review

* apply changes from review and switch to using counter for detecting races

* Remove outdated comment

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* fix test

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-11-21 20:31:29 +00:00
..
__snapshots__ Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
accessibility Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
actions/handlers
async-components Use React Suspense when rendering async modals (#28386) 2024-11-12 21:19:11 +00:00
audio Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
autocomplete Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
components Display a warning when an unverified user's identity changes (#28211) 2024-11-21 20:31:29 +00:00
contexts Migrate to stylistic 2024-10-18 14:34:01 +01:00
customisations Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
dispatcher Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
editor Fix markdown escaping wrongly passing html through (#28363) 2024-11-04 11:31:44 +00:00
events Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
hooks Update to React 18 (#24763) 2024-10-21 13:50:06 +00:00
i18n Prepare for repo merge 2024-10-15 11:35:21 +01:00
images Prepare for repo merge 2024-10-15 11:35:21 +01:00
integrations
models Migrate to stylistic 2024-10-18 14:34:01 +01:00
modules Iterate 2024-10-15 16:22:11 +01:00
notifications Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
settings Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
stores Second batch: Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` (#28466) 2024-11-20 14:27:09 +00:00
toasts Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
utils Second batch: Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` (#28466) 2024-11-20 14:27:09 +00:00
vector Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
voice-broadcast Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
widgets Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
Avatar-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
ContentMessages-test.ts Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `ContentMessages.ts` (#28238) 2024-10-18 14:44:56 +00:00
DecryptionFailureTracker-test.ts Add PostHog codes for trust requirement failures (#28292) 2024-10-28 13:16:48 +00:00
DeviceListener-test.ts First batch: Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` (#28242) 2024-11-19 10:09:25 +00:00
HtmlUtils-test.tsx
Image-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
KeyBindingsManager-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
LegacyCallHandler-test.ts
Lifecycle-test.ts Fix test 2024-10-18 13:38:25 +01:00
Markdown-test.ts
MatrixClientPeg-test.ts First batch: remove deprecated calls on `MatrixClient` (#28207) 2024-10-21 12:53:39 +01:00
MediaDeviceHandler-test.ts
Modal-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
Notifier-test.ts Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
PosthogAnalytics-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
PreferredRoomVersions-test.ts
README.md
Reply-test.ts Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
RoomNotifs-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
Rooms-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
ScalarAuthClient-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
SdkConfig-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
SecurityManager-test.ts Reset cross-signing before backup when resetting both (#28402) 2024-11-19 03:17:24 +00:00
SlashCommands-test.tsx Remove references to `MatrixClient.crypto` (#28204) 2024-10-17 08:50:44 +01:00
SlidingSyncManager-test.ts
SupportedBrowser-test.ts Update browserslist (#28431) 2024-11-12 21:04:17 +00:00
Terms-test.tsx Migrate to stylistic 2024-10-18 14:34:01 +01:00
TestSdkContext.ts
TextForEvent-test.ts
TimezoneHandler-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
Unread-test.ts
UserActivity-test.ts
WorkerManager-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
createRoom-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
email-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
favicon-test.ts
languageHandler-test.tsx Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
linkify-matrix-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
submit-rageshake-test.ts
theme-test.ts
useTopic-test.tsx

README.md

Any UTs for vector-web layer components or functionality should go here. This used to contain the UTs for notifications before they got moved to react-sdk.