element-web/src
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
..
@types Update type and usage of window.matrixChat to be better React 18 friendly (#28415) 2024-11-13 14:16:29 +00:00
accessibility Remove type cast 2024-11-13 20:40:46 +05:30
actions Make Sonar happier 2024-10-18 12:56:57 +01:00
async-components Reset cross-signing before backup when resetting both (#28402) 2024-11-19 03:17:24 +00:00
audio Change license (#13) 2024-09-09 13:57:16 +00:00
autocomplete Allow tab completing users in brackets (#28460) 2024-11-15 09:11:03 +00:00
components Display a warning when an unverified user's identity changes (#28211) 2024-11-21 20:31:29 +00:00
contexts Tweak default right panel size to be 320px except for maximised widgets at 420px (#110) 2024-10-04 09:41:00 +00:00
customisations Remove unused Security customisations module (#28350) 2024-11-04 09:49:20 +00:00
dispatcher Avoid double exports 2024-11-05 18:36:26 +00:00
editor Allow tab completing users in brackets (#28460) 2024-11-15 09:11:03 +00:00
effects Change license (#13) 2024-09-09 13:57:16 +00:00
emojipicker Change license (#13) 2024-09-09 13:57:16 +00:00
events Change license (#13) 2024-09-09 13:57:16 +00:00
hooks Listen to events so that encryption icon updates when status changes (#28407) 2024-11-18 23:27:34 +00:00
i18n/strings Display a warning when an unverified user's identity changes (#28211) 2024-11-21 20:31:29 +00:00
indexing Second batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28466) 2024-11-20 14:27:09 +00:00
integrations Change license (#13) 2024-09-09 13:57:16 +00:00
mjolnir Remove boilerplate around dispatcher and settings watchers (#28338) 2024-11-01 15:15:04 +00:00
models Remove boilerplate around dispatcher and settings watchers (#28338) 2024-11-01 15:15:04 +00:00
modules Change license (#13) 2024-09-09 13:57:16 +00:00
notifications Change license (#13) 2024-09-09 13:57:16 +00:00
performance Remove unused enums 2024-11-05 18:34:47 +00:00
rageshake Migrate to stylistic 2024-10-18 14:34:01 +01:00
resizer Change license (#13) 2024-09-09 13:57:16 +00:00
serviceworker Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/repo-merge 2024-10-15 15:38:52 +01:00
settings Remove boilerplate around dispatcher and settings watchers (#28338) 2024-11-01 15:15:04 +00:00
slash-commands Change license (#13) 2024-09-09 13:57:16 +00:00
stores Second batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28466) 2024-11-20 14:27:09 +00:00
toasts Remove upgrade encryption in DeviceListener and SetupEncryptionToast (#28299) 2024-10-29 12:28:41 +00:00
usercontent Update design of files list in right panel (#144) 2024-10-14 18:08:05 +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 stylistic 2024-10-18 14:34:01 +01:00
widgets Migrate to stylistic 2024-10-18 14:34:01 +01:00
workers Change license (#13) 2024-09-09 13:57:16 +00:00
AddThreepid.ts Use React Suspense when rendering async modals (#28386) 2024-11-12 21:19:11 +00:00
AsyncWrapper.tsx Use React Suspense when rendering async modals (#28386) 2024-11-12 21:19:11 +00:00
Avatar.ts Make Sonar happier 2024-10-18 12:56:57 +01:00
BasePlatform.ts Flatten Vector-override components (#28346) 2024-11-05 15:41:00 +00:00
BlurhashEncoder.ts Remove unused types & imports 2024-11-05 18:35:31 +00:00
boundThreepids.ts Change license (#13) 2024-09-09 13:57:16 +00:00
call-types.ts Change license (#13) 2024-09-09 13:57:16 +00:00
ContentMessages.ts Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
CreateCrossSigning.ts Refactor CreateCrossSigningDialog (#28218) 2024-10-22 11:42:07 +00:00
createRoom.ts Change license (#13) 2024-09-09 13:57:16 +00:00
DateUtils.ts Change license (#13) 2024-09-09 13:57:16 +00:00
DecryptionFailureTracker.ts Add PostHog codes for trust requirement failures (#28292) 2024-10-28 13:16:48 +00:00
DeviceListener.ts First batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28242) 2024-11-19 10:09:25 +00:00
DraftCleaner.ts Migrate to stylistic 2024-10-18 14:34:01 +01:00
Editing.ts Change license (#13) 2024-09-09 13:57:16 +00:00
email.ts Change license (#13) 2024-09-09 13:57:16 +00:00
favicon.ts Update license files 2024-09-06 15:44:31 +01:00
HtmlUtils.tsx Migrate to stylistic 2024-10-18 14:34:01 +01:00
IConfigOptions.ts Add config option to force verification (#29) 2024-09-11 20:55:00 +00:00
identifiers.ts Change license (#13) 2024-09-09 13:57:16 +00:00
IdentityAuthClient.tsx Make Sonar happier 2024-10-18 12:56:57 +01:00
ImageUtils.ts Change license (#13) 2024-09-09 13:57:16 +00:00
index.ts Change license (#13) 2024-09-09 13:57:16 +00:00
KeyBindingsDefaults.ts Change license (#13) 2024-09-09 13:57:16 +00:00
KeyBindingsManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Keyboard.ts Change license (#13) 2024-09-09 13:57:16 +00:00
languageHandler.tsx Update to React 18 (#24763) 2024-10-21 13:50:06 +00:00
LegacyCallHandler.tsx Migrate to stylistic 2024-10-18 14:34:01 +01:00
Lifecycle.ts Make Sonar happier 2024-10-18 12:56:57 +01:00
linkify-matrix.ts Migrate to stylistic 2024-10-18 14:34:01 +01:00
Linkify.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Livestream.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Login.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Markdown.ts Fix markdown escaping wrongly passing html through (#28363) 2024-11-04 11:31:44 +00:00
MatrixClientPeg.ts Migrate to stylistic 2024-10-18 14:34:01 +01:00
MediaDeviceHandler.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Modal.tsx Use React Suspense when rendering async modals (#28386) 2024-11-12 21:19:11 +00:00
NodeAnimator.tsx Switch away from deprecated ReactDOM findDOMNode (#28259) 2024-10-22 11:58:45 +00:00
Notifier.ts Make Sonar happier 2024-10-18 12:56:57 +01:00
PageTypes.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PasswordReset.ts Change license (#13) 2024-09-09 13:57:16 +00:00
phonenumber.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PlatformPeg.ts Change license (#13) 2024-09-09 13:57:16 +00:00
PlaybackEncoder.ts Remove unused types & imports 2024-11-05 18:35:31 +00:00
PosthogAnalytics.ts Remove boilerplate around dispatcher and settings watchers (#28338) 2024-11-01 15:15:04 +00:00
PosthogTrackers.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Presence.ts Remove boilerplate around dispatcher and settings watchers (#28338) 2024-11-01 15:15:04 +00:00
Registration.tsx Change license (#13) 2024-09-09 13:57:16 +00:00
Resend.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Roles.ts Change license (#13) 2024-09-09 13:57:16 +00:00
RoomAliasCache.ts Change license (#13) 2024-09-09 13:57:16 +00:00
RoomInvite.tsx Update RoomInvite.tsx 2024-10-18 15:38:49 +01:00
RoomNotifs.ts Migrate to stylistic 2024-10-18 14:34:01 +01:00
Rooms.ts Change license (#13) 2024-09-09 13:57:16 +00:00
ScalarAuthClient.ts Change license (#13) 2024-09-09 13:57:16 +00:00
ScalarMessaging.ts Second batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28466) 2024-11-20 14:27:09 +00:00
SdkConfig.ts Migrate to stylistic 2024-10-18 14:34:01 +01:00
Searching.ts First batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28242) 2024-11-19 10:09:25 +00:00
SecurityManager.ts Reset cross-signing before backup when resetting both (#28402) 2024-11-19 03:17:24 +00:00
SendHistoryManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00
sendTimePerformanceMetrics.ts Change license (#13) 2024-09-09 13:57:16 +00:00
sentry.ts Avoid use of transitive deps 2024-11-05 18:35:53 +00:00
shouldHideEvent.ts Change license (#13) 2024-09-09 13:57:16 +00:00
SlashCommands.tsx Merge pull request #28236 from element-hq/t3chguy/sonar-happy 2024-10-18 15:55:15 +01:00
SlidingSyncManager.ts First batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28242) 2024-11-19 10:09:25 +00:00
SupportedBrowser.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Terms.ts Make Sonar happier 2024-10-18 12:56:57 +01:00
TextForEvent.tsx Unlabs feature pinning (#22) 2024-09-16 14:51:59 +00:00
theme.ts Change license (#13) 2024-09-09 13:57:16 +00:00
TimezoneHandler.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Typeguards.ts Change license (#13) 2024-09-09 13:57:16 +00:00
Unread.ts Change license (#13) 2024-09-09 13:57:16 +00:00
UserActivity.ts Migrate to stylistic 2024-10-18 14:34:01 +01:00
UserAddress.ts Change license (#13) 2024-09-09 13:57:16 +00:00
verification.ts First batch: remove deprecated calls on MatrixClient (#28207) 2024-10-21 12:53:39 +01:00
Views.ts Change license (#13) 2024-09-09 13:57:16 +00:00
VoipUserMapper.ts Change license (#13) 2024-09-09 13:57:16 +00:00
WhoIsTyping.ts Change license (#13) 2024-09-09 13:57:16 +00:00
WorkerManager.ts Change license (#13) 2024-09-09 13:57:16 +00:00