mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-27 02:48:39 +08:00
67cb8b7590
* Force verification even for refreshed cients Set a flag on login to remember that the device needs to be verified so that we don't forget if the user refreshes the page, but still allow user with an existing unverified session to stay logged in. * Hopefully make matrixchat tests pass? Much, much tweaking to make the matrixchat tests pass again. Should hopefully make them a bit more solid in general with judicious use of waitFor rather than flushPromises(). Also lots of fun to stop the state bleeding between tests. * Manual yarn.lock manipulation to hopefully resolve infinite package sadness * Make final test pass(?) Mock out the createClient method to return the same client, because we've mocked the peg to always return that client, so if we let the code make another one having still overridden the peg, everything becomes cursed. Also mock out the autodiscovery stuff rather than relying on fetch-mock. * another waitFor * death to flushPromises * Put the logged in dispatch back Actually it breaks all sorts of other things too, having fixed all the MatrixChat tests (although this is useful anyway). * Try displaying the screen in onClientStarted instead * Put post login screen back in logged in but move ready transition to avoid flash of main UI * Rejig more in the hope it does the right thing * Make hook work before push rules are fetched * Add test for unskippable verification * Add test for use case selection * Fix test * Add playwright test for unskippable verification * Remove console log * Add log message to log line * Add tsdoc * Use useTypedEventEmitter * Remove commented code * Use catch instead of empty then on unawaited promises or in one case just await it because the caller was async anyway * Add new mock |
||
---|---|---|
.. | ||
room | ||
spotlight | ||
useAccountData.ts | ||
useAnimation.ts | ||
useAsyncMemo.ts | ||
useAsyncRefreshMemo.ts | ||
useAudioDeviceSelection.ts | ||
useCall.ts | ||
useDispatcher.ts | ||
useEncryptionStatus.ts | ||
useEventEmitter.ts | ||
useFocus.ts | ||
useGlobalNotificationState.ts | ||
useHover.ts | ||
useIsEncrypted.ts | ||
useIsInitialSyncComplete.ts | ||
useIsReleaseAnnouncementOpen.ts | ||
useLatestResult.ts | ||
useLocalEcho.ts | ||
useLocalStorageState.ts | ||
useNotificationSettings.tsx | ||
usePermalink.ts | ||
usePermalinkEvent.ts | ||
usePermalinkMember.ts | ||
usePermalinkTargetRoom.ts | ||
usePinnedEvents.ts | ||
useProfileInfo.ts | ||
usePublicRoomDirectory.ts | ||
usePushers.ts | ||
useRoomMembers.ts | ||
useRoomName.ts | ||
useRoomNotificationState.ts | ||
useRoomState.ts | ||
useSettings.ts | ||
useSlidingSyncRoomSearch.ts | ||
useSmoothAnimation.ts | ||
useSpaceResults.ts | ||
useStateArray.ts | ||
useStateCallback.ts | ||
useStateToggle.ts | ||
useTheme.ts | ||
useThreepids.ts | ||
useTimeout.ts | ||
useTimeoutToggle.ts | ||
useTransition.ts | ||
useUnreadNotifications.ts | ||
useUserDirectory.ts | ||
useUserOnboardingContext.ts | ||
useUserOnboardingTasks.ts | ||
useUserTimezone.ts | ||
useWindowWidth.ts |