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__
accessibility
actions/handlers
async-components
audio
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
dispatcher
editor Fix markdown escaping wrongly passing html through (#28363) 2024-11-04 11:31:44 +00:00
events
hooks
i18n
images Prepare for repo merge 2024-10-15 11:35:21 +01:00
integrations
models
modules Iterate 2024-10-15 16:22:11 +01:00
notifications
settings
stores Second batch: Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` (#28466) 2024-11-20 14:27:09 +00:00
toasts
utils Second batch: Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` (#28466) 2024-11-20 14:27:09 +00:00
vector
voice-broadcast
widgets
Avatar-test.ts
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
DeviceListener-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts
Lifecycle-test.ts
Markdown-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
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
Notifier-test.ts
PosthogAnalytics-test.ts
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
Rooms-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
ScalarAuthClient-test.ts
SdkConfig-test.ts
SecurityManager-test.ts
SlashCommands-test.tsx
SlidingSyncManager-test.ts
SupportedBrowser-test.ts
Terms-test.tsx Migrate to stylistic 2024-10-18 14:34:01 +01:00
TestSdkContext.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
TextForEvent-test.ts Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00
TimezoneHandler-test.ts
Unread-test.ts
UserActivity-test.ts
WorkerManager-test.ts
createRoom-test.ts
email-test.ts
favicon-test.ts
languageHandler-test.tsx
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 Merge matrix-react-sdk into element-web 2024-10-15 15:32:09 +01:00

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.