From 9494f77250cbb074af06b48e57fe917435c95ced Mon Sep 17 00:00:00 2001
From: nmscode <105442557+nmscode@users.noreply.github.com>
Date: Mon, 28 Aug 2023 11:32:54 -0400
Subject: [PATCH] revert
---
.eslintrc.js | 187 +--
.github/workflows/cypress.yaml | 2 +-
.github/workflows/i18n_check.yml | 6 +-
__mocks__/languages.json | 10 +-
cypress/e2e/audio-player/audio-player.spec.ts | 10 +-
cypress/e2e/editing/editing.spec.ts | 4 +-
cypress/e2e/login/login.spec.ts | 30 +-
cypress/e2e/login/soft_logout.spec.ts | 143 ++
cypress/e2e/login/utils.ts | 49 +
cypress/e2e/read-receipts/high-level.spec.ts | 292 +++-
.../e2e/read-receipts/read-receipts.spec.ts | 3 +-
cypress/e2e/register/email.spec.ts | 93 ++
.../general-user-settings-tab.spec.ts | 8 +-
cypress/e2e/spotlight/spotlight.spec.ts | 12 +-
cypress/e2e/threads/threads.spec.ts | 8 +-
cypress/e2e/timeline/timeline.spec.ts | 22 +-
cypress/e2e/widgets/stickers.spec.ts | 8 +-
cypress/global.d.ts | 1 +
cypress/plugins/docker/index.ts | 8 +
cypress/plugins/index.ts | 2 +
cypress/plugins/mailhog/index.ts | 91 ++
cypress/plugins/synapsedocker/index.ts | 69 +-
.../templates/default/homeserver.yaml | 7 +-
.../synapsedocker/templates/email/README.md | 1 +
.../templates/email/homeserver.yaml | 44 +
.../synapsedocker/templates/email/log.config | 50 +
cypress/support/client.ts | 2 +-
cypress/support/e2e.ts | 2 +
cypress/support/homeserver.ts | 12 +-
cypress/support/mailhog.ts | 54 +
cypress/support/promise.ts | 58 +
cypress/support/views.ts | 26 +-
docs/settings.md | 2 +-
jest.config.ts | 7 +-
package.json | 37 +-
res/css/_components.pcss | 8 +-
res/css/components/views/utils/_Box.pcss | 27 +
res/css/components/views/utils/_Flex.pcss | 23 +
res/css/structures/_RightPanel.pcss | 4 -
res/css/structures/_RoomStatusBar.pcss | 10 -
res/css/structures/_SpaceHierarchy.pcss | 6 -
res/css/structures/_SpacePanel.pcss | 18 +-
res/css/structures/_SpaceRoomView.pcss | 4 -
.../auth/_ConfirmSessionLockTheftView.pcss} | 20 +-
.../auth/_SessionLockStolenView.pcss | 30 +
res/css/views/avatars/_BaseAvatar.pcss | 50 +-
.../views/avatars/_DecoratedRoomAvatar.pcss | 8 +-
.../dialogs/_AddExistingToSpaceDialog.pcss | 14 +-
res/css/views/dialogs/_CompoundDialog.pcss | 3 +-
.../_ManageRestrictedJoinRuleDialog.pcss | 9 -
.../views/dialogs/_RoomSettingsDialog.pcss | 4 +
res/css/views/dialogs/_SpotlightDialog.pcss | 13 +-
res/css/views/elements/_AccessibleButton.pcss | 12 +-
res/css/views/elements/_FacePile.pcss | 6 +-
.../elements/_GenericEventListSummary.pcss | 5 +
res/css/views/elements/_LanguageDropdown.pcss | 21 +
.../views/elements/_MiniAvatarUploader.pcss | 2 +
res/css/views/elements/_TooltipButton.pcss | 51 -
res/css/views/messages/_DateSeparator.pcss | 1 +
.../views/right_panel/_RoomSummaryCard.pcss | 5 -
res/css/views/right_panel/_UserInfo.pcss | 53 +-
res/css/views/rooms/_EntityTile.pcss | 1 +
res/css/views/rooms/_EventTile.pcss | 1 +
res/css/views/rooms/_LegacyRoomHeader.pcss | 4 -
res/css/views/rooms/_MemberInfo.pcss | 2 +-
res/css/views/rooms/_RoomHeader.pcss | 11 +-
res/css/views/rooms/_RoomPreviewCard.pcss | 7 -
res/css/views/rooms/_WhoIsTypingTile.pcss | 4 -
res/css/views/settings/_JoinRuleSettings.pcss | 5 -
.../tabs/room/_NotificationSettingsTab.pcss | 4 +
.../tabs/room/_PeopleRoomSettingsTab.pcss | 56 +
res/img/element-icons/spaces.svg | 3 +
res/img/feather-customised/check.svg | 2 +-
res/img/feather-customised/x.svg | 2 +-
.../legacy-light/css/_legacy-light.pcss | 16 +-
.../css/_light-high-contrast.pcss | 16 +-
res/themes/light/css/_light.pcss | 16 +-
scripts/check-i18n.pl | 192 ---
scripts/fix-i18n.pl | 114 --
scripts/fixup-imports.pl | 27 -
sonar-project.properties | 4 +-
src/@types/common.ts | 43 +-
src/@types/global.d.ts | 1 +
src/AddThreepid.ts | 6 +-
src/AsyncWrapper.tsx | 4 +-
src/ContentMessages.ts | 2 +-
src/DateUtils.ts | 266 +--
src/HtmlUtils.tsx | 2 +-
src/IdentityAuthClient.tsx | 6 +-
src/LegacyCallHandler.tsx | 14 +-
src/Lifecycle.ts | 60 +-
src/Login.ts | 10 +-
src/Markdown.ts | 23 +-
src/MatrixClientPeg.ts | 4 +-
src/Notifier.ts | 5 +-
src/PosthogTrackers.ts | 2 +
src/Registration.tsx | 4 +-
src/RoomInvite.tsx | 3 +-
src/SecurityManager.ts | 4 +-
src/SlashCommands.tsx | 22 +-
src/TextForEvent.tsx | 34 +-
src/Unread.ts | 3 +-
src/Views.ts | 6 +
src/accessibility/KeyboardShortcutUtils.ts | 6 +-
src/accessibility/KeyboardShortcuts.ts | 36 +-
.../eventindex/DisableEventIndexDialog.tsx | 2 +-
.../eventindex/ManageEventIndexDialog.tsx | 4 +-
.../security/CreateKeyBackupDialog.tsx | 4 +-
.../security/CreateSecretStorageDialog.tsx | 50 +-
.../dialogs/security/ExportE2eKeysDialog.tsx | 15 +-
.../dialogs/security/ImportE2eKeysDialog.tsx | 10 +-
.../security/NewRecoveryMethodDialog.tsx | 7 +-
.../security/RecoveryMethodRemovedDialog.tsx | 12 +-
src/autocomplete/EmojiProvider.tsx | 6 +-
src/autocomplete/NotifProvider.tsx | 2 +-
src/autocomplete/RoomProvider.tsx | 2 +-
src/autocomplete/UserProvider.tsx | 2 +-
src/boundThreepids.ts | 3 +-
src/components/structures/EmbeddedPage.tsx | 4 +-
src/components/structures/HomePage.tsx | 8 +-
src/components/structures/InteractiveAuth.tsx | 20 +-
src/components/structures/MatrixChat.tsx | 109 +-
src/components/structures/MessagePanel.tsx | 11 +-
src/components/structures/RoomSearch.tsx | 9 +-
src/components/structures/RoomSearchView.tsx | 4 +-
src/components/structures/RoomStatusBar.tsx | 12 +-
src/components/structures/RoomView.tsx | 2 +-
src/components/structures/SpaceHierarchy.tsx | 32 +-
src/components/structures/SpaceRoomView.tsx | 19 +-
src/components/structures/TabbedView.tsx | 4 +-
src/components/structures/ThreadPanel.tsx | 5 +-
src/components/structures/ThreadView.tsx | 2 +-
src/components/structures/TimelinePanel.tsx | 5 +-
src/components/structures/UploadBar.tsx | 17 +-
src/components/structures/UserMenu.tsx | 12 +-
src/components/structures/ViewSource.tsx | 4 +-
.../WaitingForThirdPartyRoomView.tsx | 3 +-
.../auth/ConfirmSessionLockTheftView.tsx | 51 +
.../structures/auth/ForgotPassword.tsx | 12 +-
src/components/structures/auth/Login.tsx | 8 +-
.../structures/auth/Registration.tsx | 42 +-
.../structures/auth/SessionLockStolenView.tsx | 35 +
.../structures/auth/SetupEncryptionBody.tsx | 25 +-
src/components/structures/auth/SoftLogout.tsx | 55 +-
.../auth/forgot-password/CheckEmail.tsx | 4 +-
.../auth/forgot-password/VerifyEmailModal.tsx | 5 +-
src/components/utils/Box.tsx | 103 ++
src/components/utils/Flex.tsx | 86 +
src/components/views/auth/CountryDropdown.tsx | 54 +-
src/components/views/auth/EmailField.tsx | 14 +-
.../auth/InteractiveAuthEntryComponents.tsx | 17 +-
src/components/views/auth/LoginWithQRFlow.tsx | 8 +-
.../views/auth/PassphraseConfirmField.tsx | 8 +-
src/components/views/auth/PassphraseField.tsx | 12 +-
src/components/views/auth/PasswordLogin.tsx | 10 +-
.../views/auth/RegistrationForm.tsx | 4 +-
src/components/views/avatars/BaseAvatar.tsx | 150 +-
.../views/avatars/DecoratedRoomAvatar.tsx | 7 +-
src/components/views/avatars/MemberAvatar.tsx | 15 +-
src/components/views/avatars/RoomAvatar.tsx | 17 +-
.../views/avatars/SearchResultAvatar.tsx | 7 +-
src/components/views/avatars/WidgetAvatar.tsx | 10 +-
.../views/beacon/BeaconListItem.tsx | 5 +-
src/components/views/beacon/BeaconMarker.tsx | 3 +-
.../views/beacon/BeaconStatusTooltip.tsx | 3 +-
.../views/beacon/BeaconViewDialog.tsx | 2 +-
.../views/beacon/DialogOwnBeaconStatus.tsx | 10 +-
.../views/beacon/OwnBeaconStatus.tsx | 6 +-
.../views/beacon/RoomCallBanner.tsx | 2 +-
.../views/beacon/RoomLiveShareWarning.tsx | 2 +-
.../views/beacon/ShareLatestLocation.tsx | 4 +-
src/components/views/beacon/displayStatus.ts | 4 +-
src/components/views/beta/BetaCard.tsx | 4 +-
.../views/context_menus/DeviceContextMenu.tsx | 4 +-
.../context_menus/MessageContextMenu.tsx | 22 +-
.../views/context_menus/RoomContextMenu.tsx | 10 +-
.../context_menus/RoomGeneralContextMenu.tsx | 6 +-
.../views/context_menus/SpaceContextMenu.tsx | 8 +-
.../views/context_menus/WidgetContextMenu.tsx | 7 +-
.../dialogs/AddExistingToSpaceDialog.tsx | 22 +-
.../dialogs/AnalyticsLearnMoreDialog.tsx | 4 +-
.../views/dialogs/AskInviteAnywayDialog.tsx | 2 +-
.../views/dialogs/BugReportDialog.tsx | 10 +-
.../views/dialogs/BulkRedactDialog.tsx | 10 +-
.../CantStartVoiceMessageBroadcastDialog.tsx | 3 +-
.../views/dialogs/ChangelogDialog.tsx | 2 +-
.../dialogs/ConfirmAndWaitRedactDialog.tsx | 2 +-
.../views/dialogs/ConfirmRedactDialog.tsx | 4 +-
.../views/dialogs/ConfirmUserActionDialog.tsx | 2 +-
.../views/dialogs/ConfirmWipeDeviceDialog.tsx | 5 +-
.../views/dialogs/CreateRoomDialog.tsx | 13 +-
.../views/dialogs/CreateSubspaceDialog.tsx | 4 +-
.../views/dialogs/CryptoStoreTooNewDialog.tsx | 14 +-
.../views/dialogs/DeactivateAccountDialog.tsx | 4 +-
.../views/dialogs/DevtoolsDialog.tsx | 10 +-
.../views/dialogs/EndPollDialog.tsx | 4 +-
src/components/views/dialogs/ErrorDialog.tsx | 4 +-
src/components/views/dialogs/ExportDialog.tsx | 8 +-
.../views/dialogs/FeedbackDialog.tsx | 10 +-
.../views/dialogs/ForwardDialog.tsx | 33 +-
.../dialogs/GenericFeatureFeedbackDialog.tsx | 2 +-
.../views/dialogs/IncomingSasDialog.tsx | 23 +-
src/components/views/dialogs/InfoDialog.tsx | 2 +-
.../dialogs/IntegrationsDisabledDialog.tsx | 4 +-
.../dialogs/IntegrationsImpossibleDialog.tsx | 5 +-
.../views/dialogs/InteractiveAuthDialog.tsx | 9 +-
src/components/views/dialogs/InviteDialog.tsx | 43 +-
.../KeySignatureUploadFailedDialog.tsx | 2 +-
.../dialogs/LazyLoadingDisabledDialog.tsx | 9 +-
.../views/dialogs/LazyLoadingResyncDialog.tsx | 6 +-
.../views/dialogs/LeaveSpaceDialog.tsx | 7 +-
src/components/views/dialogs/LogoutDialog.tsx | 12 +-
.../ManageRestrictedJoinRuleDialog.tsx | 15 +-
.../views/dialogs/ModuleUiDialog.tsx | 38 +-
.../views/dialogs/QuestionDialog.tsx | 2 +-
.../dialogs/RegistrationEmailPromptDialog.tsx | 5 +-
.../views/dialogs/ReportEventDialog.tsx | 36 +-
.../views/dialogs/RoomSettingsDialog.tsx | 20 +-
.../views/dialogs/RoomUpgradeDialog.tsx | 10 +-
.../dialogs/RoomUpgradeWarningDialog.tsx | 16 +-
.../views/dialogs/ScrollableBaseModal.tsx | 3 +-
.../views/dialogs/ServerOfflineDialog.tsx | 7 +-
.../views/dialogs/ServerPickerDialog.tsx | 6 +-
.../views/dialogs/SeshatResetDialog.tsx | 6 +-
.../dialogs/SessionRestoreErrorDialog.tsx | 11 +-
.../views/dialogs/SetEmailDialog.tsx | 16 +-
.../dialogs/SlidingSyncOptionsDialog.tsx | 2 +-
.../views/dialogs/SpacePreferencesDialog.tsx | 7 +-
.../views/dialogs/StorageEvictedDialog.tsx | 6 +-
src/components/views/dialogs/TermsDialog.tsx | 4 +-
.../views/dialogs/TextInputDialog.tsx | 6 +-
.../views/dialogs/UntrustedDeviceDialog.tsx | 2 +-
.../views/dialogs/UploadConfirmDialog.tsx | 2 +-
.../views/dialogs/UploadFailureDialog.tsx | 11 +-
.../views/dialogs/UserSettingsDialog.tsx | 6 +-
.../dialogs/WidgetOpenIDPermissionsDialog.tsx | 2 +-
.../views/dialogs/devtools/BaseTool.tsx | 2 +-
.../views/dialogs/devtools/Event.tsx | 6 +-
.../dialogs/devtools/RoomNotifications.tsx | 33 +-
.../views/dialogs/devtools/RoomState.tsx | 7 +-
.../dialogs/devtools/VerificationExplorer.tsx | 6 +-
.../views/dialogs/oidc/OidcLogoutDialog.tsx | 74 +
.../security/AccessSecretStorageDialog.tsx | 16 +-
.../ConfirmDestroyCrossSigningDialog.tsx | 7 +-
.../security/CreateCrossSigningDialog.tsx | 7 +-
.../security/RestoreKeyBackupDialog.tsx | 31 +-
.../views/dialogs/spotlight/Filter.ts | 21 +
.../dialogs/spotlight/SpotlightDialog.tsx | 143 +-
.../views/directory/NetworkDropdown.tsx | 2 +-
.../views/elements/AccessibleButton.tsx | 4 +-
.../views/elements/AppPermission.tsx | 6 +-
src/components/views/elements/AppTile.tsx | 6 +-
.../views/elements/CopyableText.tsx | 2 +-
.../elements/DesktopCapturerSourcePicker.tsx | 10 +-
.../views/elements/DialogButtons.tsx | 2 +-
src/components/views/elements/Dropdown.tsx | 2 +-
.../views/elements/EditableItemList.tsx | 13 +-
.../views/elements/ErrorBoundary.tsx | 12 +-
src/components/views/elements/FacePile.tsx | 14 +-
.../elements/GenericEventListSummary.tsx | 4 +-
src/components/views/elements/ImageView.tsx | 15 +-
.../views/elements/InlineSpinner.tsx | 2 +-
.../views/elements/LanguageDropdown.tsx | 31 +-
src/components/views/elements/LearnMore.tsx | 4 +-
.../views/elements/MiniAvatarUploader.tsx | 2 +-
src/components/views/elements/Pill.tsx | 10 +-
.../views/elements/PollCreateDialog.tsx | 13 +-
src/components/views/elements/ReplyChain.tsx | 3 +-
.../views/elements/RoomFacePile.tsx | 8 +-
src/components/views/elements/SSOButtons.tsx | 14 +-
.../views/elements/ServerPicker.tsx | 16 +-
.../views/elements/SettingsFlag.tsx | 9 +-
.../elements/SpellCheckLanguagesDropdown.tsx | 13 +-
src/components/views/elements/Spinner.tsx | 2 +-
src/components/views/elements/TagComposer.tsx | 2 +-
.../views/elements/TooltipButton.tsx | 43 -
.../views/elements/UseCaseSelection.tsx | 2 +-
src/components/views/emojipicker/Category.tsx | 2 +-
src/components/views/emojipicker/Emoji.tsx | 9 +-
.../views/emojipicker/EmojiPicker.tsx | 13 +-
src/components/views/emojipicker/Preview.tsx | 5 +-
.../views/emojipicker/QuickReactions.tsx | 2 +-
src/components/views/emojipicker/Search.tsx | 2 +-
.../views/location/EnableLiveShare.tsx | 7 +-
src/components/views/location/MapError.tsx | 2 +-
src/components/views/location/Marker.tsx | 3 +-
.../views/location/ShareDialogButtons.tsx | 4 +-
src/components/views/location/ShareType.tsx | 8 +-
src/components/views/location/ZoomButtons.tsx | 4 +-
.../views/location/shareLocation.ts | 28 +-
src/components/views/messages/CallEvent.tsx | 15 +-
.../views/messages/DateSeparator.tsx | 28 +-
.../views/messages/DisambiguatedProfile.tsx | 2 +-
.../views/messages/DownloadActionButton.tsx | 6 +-
.../views/messages/EditHistoryMessage.tsx | 4 +-
.../views/messages/EncryptionEvent.tsx | 10 +-
.../views/messages/LegacyCallEvent.tsx | 8 +-
src/components/views/messages/MBeaconBody.tsx | 6 +-
src/components/views/messages/MFileBody.tsx | 10 +-
src/components/views/messages/MImageBody.tsx | 8 +-
.../messages/MKeyVerificationRequest.tsx | 4 +-
src/components/views/messages/MPollBody.tsx | 12 +-
.../views/messages/MPollEndBody.tsx | 3 +-
.../views/messages/MessageActionBar.tsx | 22 +-
.../views/messages/MessageEvent.tsx | 13 +-
.../views/messages/ReactionsRow.tsx | 2 +-
.../views/messages/RoomAvatarEvent.tsx | 2 +-
.../views/messages/RoomPredecessorTile.tsx | 7 +-
src/components/views/messages/TextualBody.tsx | 6 +-
.../views/messages/TileErrorBoundary.tsx | 2 +-
src/components/views/pips/WidgetPip.tsx | 6 +-
.../views/polls/pollHistory/fetchPastPolls.ts | 2 +-
src/components/views/right_panel/BaseCard.tsx | 4 +-
.../views/right_panel/EncryptionInfo.tsx | 6 +-
.../right_panel/LegacyRoomHeaderButtons.tsx | 2 +-
.../views/right_panel/PinnedMessagesCard.tsx | 3 +-
.../views/right_panel/RoomSummaryCard.tsx | 14 +-
src/components/views/right_panel/UserInfo.tsx | 50 +-
.../views/right_panel/VerificationPanel.tsx | 16 +-
.../views/right_panel/WidgetCard.tsx | 2 +-
.../views/room_settings/AliasSettings.tsx | 20 +-
.../room_settings/RoomProfileSettings.tsx | 4 +-
.../room_settings/UrlPreviewSettings.tsx | 7 +-
.../views/rooms/BasicMessageComposer.tsx | 2 +-
src/components/views/rooms/E2EIcon.tsx | 8 +-
.../views/rooms/EditMessageComposer.tsx | 4 +-
src/components/views/rooms/EntityTile.tsx | 10 +-
src/components/views/rooms/EventTile.tsx | 21 +-
.../views/rooms/LegacyRoomHeader.tsx | 6 +-
.../views/rooms/LinkPreviewGroup.tsx | 2 +-
.../views/rooms/LiveContentSummary.tsx | 2 +-
src/components/views/rooms/MemberList.tsx | 9 +-
src/components/views/rooms/MemberTile.tsx | 2 +-
.../views/rooms/MessageComposerButtons.tsx | 7 +-
.../views/rooms/MessageComposerFormatBar.tsx | 2 +-
src/components/views/rooms/NewRoomIntro.tsx | 15 +-
.../views/rooms/PinnedEventTile.tsx | 7 +-
src/components/views/rooms/PresenceLabel.tsx | 2 +-
.../views/rooms/ReadReceiptGroup.tsx | 3 +-
.../views/rooms/ReadReceiptMarker.tsx | 4 +-
src/components/views/rooms/ReplyTile.tsx | 2 +-
.../views/rooms/RoomBreadcrumbs.tsx | 2 +-
src/components/views/rooms/RoomHeader.tsx | 141 +-
src/components/views/rooms/RoomList.tsx | 18 +-
src/components/views/rooms/RoomListHeader.tsx | 4 +-
src/components/views/rooms/RoomPreviewBar.tsx | 20 +-
.../views/rooms/RoomPreviewCard.tsx | 16 +-
src/components/views/rooms/RoomSublist.tsx | 2 +-
src/components/views/rooms/RoomTile.tsx | 2 +-
.../views/rooms/RoomTileCallSummary.tsx | 2 +-
.../views/rooms/RoomUpgradeWarningBar.tsx | 10 +-
src/components/views/rooms/SearchBar.tsx | 4 +-
.../views/rooms/SendMessageComposer.tsx | 5 +-
src/components/views/rooms/Stickerpicker.tsx | 4 +-
.../views/rooms/ThirdPartyMemberInfo.tsx | 11 +-
src/components/views/rooms/ThreadSummary.tsx | 3 +-
.../views/rooms/VoiceRecordComposerTile.tsx | 2 +-
.../views/rooms/WhoIsTypingTile.tsx | 3 +-
.../DynamicImportWysiwygComposer.tsx | 2 +-
.../components/EditionButtons.tsx | 4 +-
.../components/FormattingButtons.tsx | 2 +-
.../wysiwyg_composer/components/LinkModal.tsx | 4 +-
.../components/WysiwygAutocomplete.tsx | 13 +-
.../wysiwyg_composer/hooks/useEditing.ts | 2 +-
.../wysiwyg_composer/hooks/useSuggestion.ts | 18 +-
.../views/settings/AddPrivilegedUsers.tsx | 6 +-
.../views/settings/AvatarSetting.tsx | 4 +-
src/components/views/settings/BridgeTile.tsx | 4 +-
.../views/settings/CrossSigningPanel.tsx | 5 +-
.../views/settings/EventIndexPanel.tsx | 16 +-
.../views/settings/JoinRuleSettings.tsx | 11 +-
.../views/settings/LayoutSwitcher.tsx | 4 +-
.../views/settings/Notifications.tsx | 13 +-
.../views/settings/ProfileSettings.tsx | 4 +-
.../views/settings/SecureBackupPanel.tsx | 13 +-
src/components/views/settings/SetIdServer.tsx | 36 +-
.../views/settings/SetIntegrationManager.tsx | 5 +-
.../views/settings/SpellCheckSettings.tsx | 4 +-
.../views/settings/ThemeChoicePanel.tsx | 2 +-
.../views/settings/account/EmailAddresses.tsx | 36 +-
.../views/settings/account/PhoneNumbers.tsx | 48 +-
.../settings/devices/CurrentDeviceSection.tsx | 6 +-
.../settings/devices/DeviceDetailHeading.tsx | 10 +-
.../views/settings/devices/DeviceDetails.tsx | 5 +-
.../devices/DeviceSecurityLearnMore.tsx | 9 +-
.../settings/devices/FilteredDeviceList.tsx | 86 +-
.../devices/FilteredDeviceListHeader.tsx | 24 +-
.../settings/devices/LoginWithQRSection.tsx | 3 +-
.../devices/OtherSessionsSectionHeading.tsx | 36 +-
.../devices/SecurityRecommendations.tsx | 6 +-
.../views/settings/devices/deleteDevices.tsx | 2 +-
.../views/settings/devices/useOwnDevices.ts | 2 +-
.../settings/discovery/EmailAddresses.tsx | 8 +-
.../views/settings/discovery/PhoneNumbers.tsx | 8 +-
.../NotificationPusherSettings.tsx | 3 +-
.../notifications/NotificationSettings2.tsx | 6 +-
.../tabs/room/AdvancedRoomSettingsTab.tsx | 4 +-
.../settings/tabs/room/BridgeSettingsTab.tsx | 4 +-
.../tabs/room/GeneralRoomSettingsTab.tsx | 4 +-
.../tabs/room/NotificationSettingsTab.tsx | 7 +-
.../tabs/room/PeopleRoomSettingsTab.tsx | 173 ++
.../tabs/room/RolesRoomSettingsTab.tsx | 19 +-
.../tabs/room/SecurityRoomSettingsTab.tsx | 27 +-
.../tabs/room/VoipRoomSettingsTab.tsx | 7 +-
.../tabs/user/GeneralUserSettingsTab.tsx | 49 +-
.../tabs/user/HelpUserSettingsTab.tsx | 28 +-
.../tabs/user/LabsUserSettingsTab.tsx | 10 +-
.../tabs/user/MjolnirUserSettingsTab.tsx | 19 +-
.../tabs/user/SecurityUserSettingsTab.tsx | 9 +-
.../settings/tabs/user/SessionManagerTab.tsx | 78 +-
.../tabs/user/SidebarUserSettingsTab.tsx | 9 +-
.../views/spaces/QuickSettingsButton.tsx | 6 +-
.../views/spaces/QuickThemeSwitcher.tsx | 2 +-
.../views/spaces/SpaceBasicSettings.tsx | 8 +-
.../views/spaces/SpaceChildrenPicker.tsx | 2 +-
.../views/spaces/SpaceCreateMenu.tsx | 53 +-
src/components/views/spaces/SpacePanel.tsx | 19 +-
.../views/spaces/SpaceSettingsGeneralTab.tsx | 2 +-
.../spaces/SpaceSettingsVisibilityTab.tsx | 4 +-
.../views/spaces/SpaceTreeLevel.tsx | 12 +-
.../views/terms/InlineTermsAgreement.tsx | 4 +-
.../views/toasts/VerificationRequestToast.tsx | 4 +-
.../user-onboarding/UserOnboardingHeader.tsx | 12 +-
.../verification/VerificationCancelled.tsx | 6 +-
.../verification/VerificationComplete.tsx | 3 +-
.../verification/VerificationShowSas.tsx | 134 +-
src/components/views/voip/CallView.tsx | 6 +-
src/components/views/voip/LegacyCallView.tsx | 4 +-
.../LegacyCallView/LegacyCallViewHeader.tsx | 8 +-
src/components/views/voip/VideoFeed.tsx | 8 +-
src/createRoom.ts | 3 +-
src/dispatcher/actions.ts | 5 +
src/dispatcher/payloads/JoinRoomPayload.ts | 2 +-
.../payloads/OpenSpotlightPayload.ts | 26 +
.../payloads/SubmitAskToJoinPayload.ts | 2 +-
src/editor/commands.tsx | 3 +-
src/effects/effect.ts | 6 +-
src/emoji.ts | 122 --
src/events/EventTileFactory.tsx | 12 +-
src/events/forward/getForwardableEvent.ts | 4 +-
.../location/getShareableLocationEvent.ts | 3 +-
src/hooks/room/useRoomCallStatus.ts | 161 ++
src/hooks/room/useRoomThreadNotifications.ts | 67 +
src/hooks/room/useTopic.ts | 17 +-
src/hooks/spotlight/useDebouncedCallback.ts | 2 +-
src/hooks/useGlobalNotificationState.ts | 44 +
src/hooks/usePermalink.ts | 4 +-
src/hooks/usePublicRoomDirectory.ts | 3 +-
src/hooks/useRoomMembers.ts | 33 +-
src/hooks/useSpaceResults.ts | 7 +-
src/hooks/useThreepids.ts | 3 +-
src/i18n/strings/ar.json | 227 +--
src/i18n/strings/az.json | 56 +-
src/i18n/strings/be.json | 24 +-
src/i18n/strings/bg.json | 473 +++---
src/i18n/strings/bs.json | 8 +-
src/i18n/strings/ca.json | 279 ++--
src/i18n/strings/cs.json | 945 ++++++-----
src/i18n/strings/cy.json | 8 +-
src/i18n/strings/da.json | 126 +-
src/i18n/strings/de_DE.json | 951 ++++++-----
src/i18n/strings/el.json | 782 +++++----
src/i18n/strings/en_EN.json | 1207 ++++++--------
src/i18n/strings/en_US.json | 127 +-
src/i18n/strings/eo.json | 663 +++++---
src/i18n/strings/es.json | 888 ++++++----
src/i18n/strings/et.json | 938 ++++++-----
src/i18n/strings/eu.json | 437 +++--
src/i18n/strings/fa.json | 547 ++++---
src/i18n/strings/fi.json | 867 ++++++----
src/i18n/strings/fr.json | 940 ++++++-----
src/i18n/strings/ga.json | 238 +--
src/i18n/strings/gl.json | 824 ++++++----
src/i18n/strings/he.json | 609 ++++---
src/i18n/strings/hi.json | 86 +-
src/i18n/strings/hr.json | 22 +-
src/i18n/strings/hu.json | 914 ++++++-----
src/i18n/strings/id.json | 945 ++++++-----
src/i18n/strings/is.json | 816 ++++++----
src/i18n/strings/it.json | 945 ++++++-----
src/i18n/strings/ja.json | 870 ++++++----
src/i18n/strings/jbo.json | 116 +-
src/i18n/strings/ka.json | 49 +-
src/i18n/strings/kab.json | 449 +++---
src/i18n/strings/ko.json | 379 +++--
src/i18n/strings/lo.json | 771 +++++----
src/i18n/strings/lt.json | 633 +++++---
src/i18n/strings/lv.json | 476 +++---
src/i18n/strings/ml.json | 46 +-
src/i18n/strings/mn.json | 6 +-
src/i18n/strings/nb_NO.json | 427 +++--
src/i18n/strings/ne.json | 6 +-
src/i18n/strings/nl.json | 832 ++++++----
src/i18n/strings/nn.json | 360 +++--
src/i18n/strings/oc.json | 161 +-
src/i18n/strings/pl.json | 932 ++++++-----
src/i18n/strings/pt.json | 145 +-
src/i18n/strings/pt_BR.json | 680 +++++---
src/i18n/strings/ro.json | 18 +-
src/i18n/strings/ru.json | 866 ++++++----
src/i18n/strings/si.json | 10 +-
src/i18n/strings/sk.json | 948 ++++++-----
src/i18n/strings/sl.json | 20 +-
src/i18n/strings/sq.json | 908 ++++++-----
src/i18n/strings/sr.json | 342 ++--
src/i18n/strings/sr_Latn.json | 18 +-
src/i18n/strings/sv.json | 937 ++++++-----
src/i18n/strings/ta.json | 48 +-
src/i18n/strings/te.json | 40 +-
src/i18n/strings/th.json | 179 ++-
src/i18n/strings/tr.json | 453 +++---
src/i18n/strings/tzm.json | 75 +-
src/i18n/strings/uk.json | 982 +++++++-----
src/i18n/strings/vi.json | 903 +++++++----
src/i18n/strings/vls.json | 321 ++--
src/i18n/strings/zh_Hans.json | 854 ++++++----
src/i18n/strings/zh_Hant.json | 940 ++++++-----
src/languageHandler.tsx | 76 +-
src/modules/ProxiedModuleApi.ts | 19 +-
.../VectorPushRulesDefinitions.ts | 6 +-
src/phonenumber.ts | 253 +--
src/settings/Settings.tsx | 114 +-
src/settings/SettingsStore.ts | 2 +-
src/slash-commands/command.ts | 6 +-
src/stores/OwnBeaconStore.ts | 14 +-
src/stores/OwnProfileStore.ts | 1 +
src/stores/RoomViewStore.tsx | 4 +-
.../right-panel/RightPanelStorePhases.ts | 2 +-
src/stores/room-list/MessagePreviewStore.ts | 3 +-
.../previews/PollStartEventPreview.ts | 3 +-
src/stores/spaces/SpaceStore.ts | 2 +-
src/stores/spaces/index.ts | 11 +-
src/theme.ts | 4 +-
src/toasts/AnalyticsToast.tsx | 13 +-
src/toasts/DesktopNotificationsToast.ts | 4 +-
src/toasts/IncomingCallToast.tsx | 10 +-
src/toasts/IncomingLegacyCallToast.tsx | 6 +-
src/toasts/MobileGuideToast.ts | 5 +-
src/toasts/ServerLimitToast.tsx | 2 +-
src/toasts/SetupEncryptionToast.ts | 6 +-
src/toasts/UnverifiedSessionToast.tsx | 2 +-
src/toasts/UpdateToast.tsx | 6 +-
src/utils/AutoDiscoveryUtils.tsx | 29 +-
src/utils/ErrorUtils.tsx | 11 +-
src/utils/EventRenderingUtils.ts | 13 +-
src/utils/EventUtils.ts | 7 +-
src/utils/FileUtils.ts | 2 +-
src/utils/FormattingUtils.ts | 28 +-
src/utils/MultiInviter.ts | 3 +-
src/utils/PasswordScorer.ts | 7 +-
src/utils/PinningUtils.ts | 3 +-
src/utils/Reply.ts | 13 +-
src/utils/SessionLock.ts | 261 +++
src/utils/UserInteractiveAuth.ts | 2 +-
src/utils/ValidatedServerConfig.ts | 3 +-
src/utils/beacon/duration.ts | 5 +-
src/utils/beacon/timeline.ts | 3 +-
src/utils/exportUtils/Exporter.ts | 99 +-
src/utils/exportUtils/HtmlExport.tsx | 9 +-
src/utils/i18n-helpers.ts | 12 +-
src/utils/leave-behaviour.ts | 3 +-
src/utils/location/LocationShareErrors.ts | 3 +-
src/utils/location/isSelfLocation.ts | 2 +-
src/utils/location/locationEventGeoUri.ts | 3 +-
src/utils/location/map.ts | 7 +-
src/utils/location/positionFailureMessage.ts | 3 +-
src/utils/notifications.ts | 4 +-
src/utils/oidc/authorize.ts | 2 +-
src/utils/oidc/getDelegatedAuthAccountUrl.ts | 27 +
src/utils/oidc/getOidcLogoutUrl.ts | 28 +
.../components/atoms/VoiceBroadcastHeader.tsx | 2 +-
.../ConfirmListenBroadcastStopCurrent.tsx | 5 +-
.../hooks/useVoiceBroadcastRecording.tsx | 3 +-
.../checkVoiceBroadcastPreConditions.tsx | 9 +-
.../utils/showCantStartACallDialog.tsx | 3 +-
src/widgets/CapabilityText.tsx | 9 +-
test/DeviceListener-test.ts | 19 +-
test/Reply-test.ts | 13 +-
test/TextForEvent-test.ts | 45 +-
test/Unread-test.ts | 3 +-
test/audio/VoiceRecording-test.ts | 2 +
.../components/structures/MatrixChat-test.tsx | 266 ++-
.../structures/MessagePanel-test.tsx | 3 +-
.../structures/PipContainer-test.tsx | 5 +-
test/components/structures/RoomView-test.tsx | 2 +-
.../structures/SpaceHierarchy-test.tsx | 45 +-
.../components/structures/TabbedView-test.tsx | 17 +-
.../structures/TimelinePanel-test.tsx | 18 +-
test/components/structures/UploadBar-test.tsx | 52 +
.../components/structures/ViewSource-test.tsx | 28 +-
.../__snapshots__/MatrixChat-test.tsx.snap | 177 +-
.../__snapshots__/MessagePanel-test.tsx.snap | 31 +-
.../__snapshots__/RoomView-test.tsx.snap | 176 +-
.../SpaceHierarchy-test.tsx.snap | 92 +-
.../__snapshots__/UserMenu-test.tsx.snap | 23 +-
.../components/structures/auth/Login-test.tsx | 10 +-
.../structures/auth/Registration-test.tsx | 1 -
.../views/VerificationShowSas-test.tsx | 31 +
.../views/auth/CountryDropdown-test.tsx | 17 +-
.../views/avatars/MemberAvatar-test.tsx | 2 +-
.../views/avatars/RoomAvatar-test.tsx | 3 -
.../__snapshots__/RoomAvatar-test.tsx.snap | 69 +-
.../views/beacon/BeaconListItem-test.tsx | 3 +-
.../__snapshots__/BeaconMarker-test.tsx.snap | 27 +-
.../BeaconViewDialog-test.tsx.snap | 25 +-
.../__snapshots__/DialogSidebar-test.tsx.snap | 15 +-
test/components/views/beta/BetaCard-test.tsx | 11 +-
.../context_menus/MessageContextMenu-test.tsx | 2 +-
.../context_menus/RoomContextMenu-test.tsx | 13 +
.../RoomGeneralContextMenu-test.tsx | 3 +-
.../context_menus/WidgetContextMenu-test.tsx | 8 +-
.../dialogs/ConfirmUserActionDialog-test.tsx | 35 +
.../views/dialogs/ForwardDialog-test.tsx | 14 +-
.../dialogs/MessageEditHistoryDialog-test.tsx | 2 +-
.../views/dialogs/RoomSettingsDialog-test.tsx | 58 +-
.../views/dialogs/SpotlightDialog-test.tsx | 25 +-
.../ConfirmUserActionDialog-test.tsx.snap | 95 ++
...nageRestrictedJoinRuleDialog-test.tsx.snap | 23 +-
.../MessageEditHistoryDialog-test.tsx.snap | 14 +-
.../views/elements/FacePile-test.tsx | 31 +
.../views/elements/PollCreateDialog-test.tsx | 11 +-
.../SpellCheckLanguagesDropdown-test.tsx | 38 +
.../__snapshots__/AppTile-test.tsx.snap | 104 +-
.../__snapshots__/FacePile-test.tsx.snap | 26 +
.../elements/__snapshots__/Pill-test.tsx.snap | 186 +--
.../SpellCheckLanguagesDropdown-test.tsx.snap | 32 +
.../views/location/LocationShareMenu-test.tsx | 3 +-
.../location/LocationViewDialog-test.tsx | 5 +-
.../components/views/location/Marker-test.tsx | 2 +-
.../views/location/shareLocation-test.ts | 14 +-
.../views/messages/CallEvent-test.tsx | 8 +-
.../views/messages/DateSeparator-test.tsx | 8 +-
.../views/messages/MBeaconBody-test.tsx | 2 +-
.../views/messages/MImageBody-test.tsx | 26 +
.../views/messages/MLocationBody-test.tsx | 3 +-
.../views/messages/MPollBody-test.tsx | 7 +-
.../views/messages/MPollEndBody-test.tsx | 3 +-
.../views/messages/TextualBody-test.tsx | 4 +-
.../__snapshots__/DateSeparator-test.tsx.snap | 8 +-
.../__snapshots__/MLocationBody-test.tsx.snap | 25 +-
.../__snapshots__/TextualBody-test.tsx.snap | 164 +-
.../polls/pollHistory/PollHistory-test.tsx | 15 +-
.../pollHistory/PollListItemEnded-test.tsx | 3 +-
.../LegacyRoomHeaderButtons-test.tsx | 2 +-
.../right_panel/PinnedMessagesCard-test.tsx | 2 +-
.../RoomSummaryCard-test.tsx.snap | 23 +-
.../__snapshots__/UserInfo-test.tsx.snap | 28 +-
.../views/rooms/LegacyRoomHeader-test.tsx | 40 +-
.../UnreadNotificationBadge-test.tsx | 2 +-
.../views/rooms/PresenceLabel-test.tsx | 35 +
.../views/rooms/RoomHeader-test.tsx | 229 ++-
test/components/views/rooms/RoomTile-test.tsx | 4 +-
.../views/rooms/SearchResultTile-test.tsx | 2 +-
.../PinnedEventTile-test.tsx.snap | 25 +-
.../RoomPreviewBar-test.tsx.snap | 115 +-
.../__snapshots__/RoomTile-test.tsx.snap | 92 +-
.../components/FormattingButtons-test.tsx | 4 +
.../views/settings/Notifications-test.tsx | 3 +-
.../settings/devices/LoginWithQR-test.tsx | 2 +-
.../discovery/EmailAddresses-test.tsx | 7 +-
.../settings/discovery/PhoneNumbers-test.tsx | 2 +-
.../notifications/Notifications2-test.tsx | 11 +-
.../tabs/room/PeopleRoomSettingsTab-test.tsx | 217 +++
.../PeopleRoomSettingsTab-test.tsx.snap | 163 ++
.../tabs/user/GeneralUserSettingsTab-test.tsx | 203 ++-
.../tabs/user/LabsUserSettingsTab-test.tsx | 8 +-
.../tabs/user/SessionManagerTab-test.tsx | 175 +-
.../tabs/user/SidebarUserSettingsTab-test.tsx | 2 +-
.../GeneralUserSettingsTab-test.tsx.snap | 175 ++
.../SessionManagerTab-test.tsx.snap | 15 +
.../spaces/AddExistingToSpaceDialog-test.tsx | 23 +-
.../views/spaces/QuickSettingsButton-test.tsx | 5 +
.../views/spaces/SpacePanel-test.tsx | 7 +-
.../views/spaces/SpaceTreeLevel-test.tsx | 19 +-
.../AddExistingToSpaceDialog-test.tsx.snap | 27 +-
.../QuickSettingsButton-test.tsx.snap | 15 +
.../UserOnboardingPage-test.tsx | 4 +-
test/components/views/voip/CallView-test.tsx | 10 +-
test/editor/serialize-test.ts | 23 +
test/i18n/languages.json | 5 +-
test/languageHandler-test.ts | 121 --
test/{i18n-test => }/languageHandler-test.tsx | 169 +-
test/modules/ProxiedModuleApi-test.ts | 105 --
test/modules/ProxiedModuleApi-test.tsx | 257 +++
...erSupportUnstableFeatureController-test.ts | 3 +-
test/setup/setupLanguage.ts | 60 +-
test/setup/setupManualMocks.ts | 13 +-
test/stores/OwnBeaconStore-test.ts | 18 +-
.../room-list/algorithms/Algorithm-test.ts | 9 +-
test/test-utils/beacon.ts | 19 +-
test/test-utils/location.ts | 8 +-
test/test-utils/oidc.ts | 2 +-
test/test-utils/poll.ts | 8 +-
test/test-utils/test-utils.ts | 3 +-
test/test-utils/utilities.ts | 69 +
test/utils/AutoDiscoveryUtils-test.tsx | 25 +-
test/utils/DateUtils-test.ts | 244 ++-
test/utils/EventUtils-test.ts | 2 +-
test/utils/SessionLock-test.ts | 252 +++
.../AutoDiscoveryUtils-test.tsx.snap | 26 +
test/utils/beacon/duration-test.ts | 3 +-
test/utils/exportUtils/HTMLExport-test.ts | 68 +-
.../utils/exportUtils/PlainTextExport-test.ts | 4 +-
.../__snapshots__/HTMLExport-test.ts.snap | 8 +-
test/utils/i18n-helpers-test.ts | 62 +
test/utils/location/isSelfLocation-test.ts | 10 +-
.../media/requestMediaPermissions-test.tsx | 3 +-
test/utils/notifications-test.ts | 3 +-
.../oidc/getDelegatedAuthAccountUrl-test.ts | 61 +
test/utils/threepids-test.ts | 3 +-
yarn.lock | 1422 ++++++++++-------
711 files changed, 29268 insertions(+), 18785 deletions(-)
create mode 100644 cypress/e2e/login/soft_logout.spec.ts
create mode 100644 cypress/e2e/login/utils.ts
create mode 100644 cypress/e2e/register/email.spec.ts
create mode 100644 cypress/plugins/mailhog/index.ts
create mode 100644 cypress/plugins/synapsedocker/templates/email/README.md
create mode 100644 cypress/plugins/synapsedocker/templates/email/homeserver.yaml
create mode 100644 cypress/plugins/synapsedocker/templates/email/log.config
create mode 100644 cypress/support/mailhog.ts
create mode 100644 cypress/support/promise.ts
create mode 100644 res/css/components/views/utils/_Box.pcss
create mode 100644 res/css/components/views/utils/_Flex.pcss
rename res/css/{voice-broadcast/atoms/_PlaybackControlButton.pcss => structures/auth/_ConfirmSessionLockTheftView.pcss} (70%)
create mode 100644 res/css/structures/auth/_SessionLockStolenView.pcss
create mode 100644 res/css/views/elements/_LanguageDropdown.pcss
delete mode 100644 res/css/views/elements/_TooltipButton.pcss
create mode 100644 res/css/views/settings/tabs/room/_PeopleRoomSettingsTab.pcss
create mode 100644 res/img/element-icons/spaces.svg
delete mode 100755 scripts/check-i18n.pl
delete mode 100755 scripts/fix-i18n.pl
delete mode 100755 scripts/fixup-imports.pl
create mode 100644 src/components/structures/auth/ConfirmSessionLockTheftView.tsx
create mode 100644 src/components/structures/auth/SessionLockStolenView.tsx
create mode 100644 src/components/utils/Box.tsx
create mode 100644 src/components/utils/Flex.tsx
create mode 100644 src/components/views/dialogs/oidc/OidcLogoutDialog.tsx
create mode 100644 src/components/views/dialogs/spotlight/Filter.ts
delete mode 100644 src/components/views/elements/TooltipButton.tsx
create mode 100644 src/components/views/settings/tabs/room/PeopleRoomSettingsTab.tsx
create mode 100644 src/dispatcher/payloads/OpenSpotlightPayload.ts
delete mode 100644 src/emoji.ts
create mode 100644 src/hooks/room/useRoomCallStatus.ts
create mode 100644 src/hooks/room/useRoomThreadNotifications.ts
create mode 100644 src/hooks/useGlobalNotificationState.ts
create mode 100644 src/utils/SessionLock.ts
create mode 100644 src/utils/oidc/getDelegatedAuthAccountUrl.ts
create mode 100644 src/utils/oidc/getOidcLogoutUrl.ts
create mode 100644 test/components/structures/UploadBar-test.tsx
create mode 100644 test/components/views/VerificationShowSas-test.tsx
create mode 100644 test/components/views/dialogs/ConfirmUserActionDialog-test.tsx
create mode 100644 test/components/views/dialogs/__snapshots__/ConfirmUserActionDialog-test.tsx.snap
create mode 100644 test/components/views/elements/FacePile-test.tsx
create mode 100644 test/components/views/elements/SpellCheckLanguagesDropdown-test.tsx
create mode 100644 test/components/views/elements/__snapshots__/FacePile-test.tsx.snap
create mode 100644 test/components/views/elements/__snapshots__/SpellCheckLanguagesDropdown-test.tsx.snap
create mode 100644 test/components/views/rooms/PresenceLabel-test.tsx
create mode 100644 test/components/views/settings/tabs/room/PeopleRoomSettingsTab-test.tsx
create mode 100644 test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap
create mode 100644 test/components/views/spaces/__snapshots__/QuickSettingsButton-test.tsx.snap
delete mode 100644 test/languageHandler-test.ts
rename test/{i18n-test => }/languageHandler-test.tsx (60%)
delete mode 100644 test/modules/ProxiedModuleApi-test.ts
create mode 100644 test/modules/ProxiedModuleApi-test.tsx
create mode 100644 test/utils/SessionLock-test.ts
create mode 100644 test/utils/__snapshots__/AutoDiscoveryUtils-test.tsx.snap
create mode 100644 test/utils/i18n-helpers-test.ts
create mode 100644 test/utils/oidc/getDelegatedAuthAccountUrl-test.ts
diff --git a/.eslintrc.js b/.eslintrc.js
index f3a6e364934..4434aecfdfe 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -62,118 +62,6 @@ module.exports = {
name: "matrix-js-sdk/src/index",
message: "Please use matrix-js-sdk/src/matrix instead",
},
- {
- name: "matrix-js-sdk/src/models/typed-event-emitter",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/room",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/room-member",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/room-state",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/event",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/event-status",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/user",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/device",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/event-timeline",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/event-timeline-set",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/@types/partials",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/@types/event",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/client",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/search-result",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/poll",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/relations",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/http-api",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/@types/PushRules",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/@types/search",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/filter",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/webrtc/groupCall",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/service-types",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/sync",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/timeline-window",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/store/indexeddb",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/crypto/store/indexeddb-crypto-store",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/crypto/store/localStorage-crypto-store",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
- {
- name: "matrix-js-sdk/src/models/thread",
- message: "Please use matrix-js-sdk/src/matrix instead",
- },
{
name: "matrix-react-sdk",
message: "Please use matrix-react-sdk/src/index instead",
@@ -185,8 +73,79 @@ module.exports = {
],
patterns: [
{
- group: ["matrix-js-sdk/lib", "matrix-js-sdk/lib/", "matrix-js-sdk/lib/**"],
- message: "Please use matrix-js-sdk/src/* instead",
+ group: [
+ "matrix-js-sdk/src/**",
+ "!matrix-js-sdk/src/matrix",
+ "matrix-js-sdk/lib",
+ "matrix-js-sdk/lib/",
+ "matrix-js-sdk/lib/**",
+ // XXX: Temporarily allow these as they are not available via the main export
+ "!matrix-js-sdk/src/logger",
+ "!matrix-js-sdk/src/errors",
+ "!matrix-js-sdk/src/utils",
+ "!matrix-js-sdk/src/version-support",
+ "!matrix-js-sdk/src/randomstring",
+ "!matrix-js-sdk/src/sliding-sync",
+ "!matrix-js-sdk/src/browser-index",
+ "!matrix-js-sdk/src/feature",
+ "!matrix-js-sdk/src/NamespacedValue",
+ "!matrix-js-sdk/src/ReEmitter",
+ "!matrix-js-sdk/src/event-mapper",
+ "!matrix-js-sdk/src/interactive-auth",
+ "!matrix-js-sdk/src/secret-storage",
+ "!matrix-js-sdk/src/room-hierarchy",
+ "!matrix-js-sdk/src/rendezvous",
+ "!matrix-js-sdk/src/rendezvous/transports",
+ "!matrix-js-sdk/src/rendezvous/channels",
+ "!matrix-js-sdk/src/indexeddb-worker",
+ "!matrix-js-sdk/src/pushprocessor",
+ "!matrix-js-sdk/src/extensible_events_v1",
+ "!matrix-js-sdk/src/extensible_events_v1/PollStartEvent",
+ "!matrix-js-sdk/src/extensible_events_v1/PollResponseEvent",
+ "!matrix-js-sdk/src/extensible_events_v1/PollEndEvent",
+ "!matrix-js-sdk/src/extensible_events_v1/InvalidEventError",
+ "!matrix-js-sdk/src/crypto-api",
+ "!matrix-js-sdk/src/crypto-api/verification",
+ "!matrix-js-sdk/src/crypto",
+ "!matrix-js-sdk/src/crypto/algorithms",
+ "!matrix-js-sdk/src/crypto/api",
+ "!matrix-js-sdk/src/crypto/aes",
+ "!matrix-js-sdk/src/crypto/backup",
+ "!matrix-js-sdk/src/crypto/olmlib",
+ "!matrix-js-sdk/src/crypto/crypto",
+ "!matrix-js-sdk/src/crypto/keybackup",
+ "!matrix-js-sdk/src/crypto/RoomList",
+ "!matrix-js-sdk/src/crypto/deviceinfo",
+ "!matrix-js-sdk/src/crypto/key_passphrase",
+ "!matrix-js-sdk/src/crypto/CrossSigning",
+ "!matrix-js-sdk/src/crypto/recoverykey",
+ "!matrix-js-sdk/src/crypto/dehydration",
+ "!matrix-js-sdk/src/crypto/verification",
+ "!matrix-js-sdk/src/crypto/verification/SAS",
+ "!matrix-js-sdk/src/crypto/verification/QRCode",
+ "!matrix-js-sdk/src/crypto/verification/request",
+ "!matrix-js-sdk/src/crypto/verification/request/VerificationRequest",
+ "!matrix-js-sdk/src/common-crypto",
+ "!matrix-js-sdk/src/common-crypto/CryptoBackend",
+ "!matrix-js-sdk/src/oidc",
+ "!matrix-js-sdk/src/oidc/discovery",
+ "!matrix-js-sdk/src/oidc/authorize",
+ "!matrix-js-sdk/src/oidc/validate",
+ "!matrix-js-sdk/src/oidc/error",
+ "!matrix-js-sdk/src/oidc/register",
+ "!matrix-js-sdk/src/webrtc",
+ "!matrix-js-sdk/src/webrtc/call",
+ "!matrix-js-sdk/src/webrtc/callFeed",
+ "!matrix-js-sdk/src/webrtc/mediaHandler",
+ "!matrix-js-sdk/src/webrtc/callEventTypes",
+ "!matrix-js-sdk/src/webrtc/callEventHandler",
+ "!matrix-js-sdk/src/webrtc/groupCallEventHandler",
+ "!matrix-js-sdk/src/models",
+ "!matrix-js-sdk/src/models/read-receipt",
+ "!matrix-js-sdk/src/models/relations-container",
+ "!matrix-js-sdk/src/models/related-relations",
+ ],
+ message: "Please use matrix-js-sdk/src/matrix instead",
},
],
},
diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml
index bf1a30b87c0..070dee5b5ea 100644
--- a/.github/workflows/cypress.yaml
+++ b/.github/workflows/cypress.yaml
@@ -163,7 +163,7 @@ jobs:
echo "CYPRESS_RUST_CRYPTO=1" >> "$GITHUB_ENV"
- name: Run Cypress tests
- uses: cypress-io/github-action@90dff940a41c08c7c344310eac7e57eda636326a
+ uses: cypress-io/github-action@fa88e4afe551e64c8827a4b9e379afc63d8f691a
with:
working-directory: matrix-react-sdk
# The built-in Electron runner seems to grind to a halt trying to run the tests, so use chrome.
diff --git a/.github/workflows/i18n_check.yml b/.github/workflows/i18n_check.yml
index bb8e0188826..e72f8ca7b62 100644
--- a/.github/workflows/i18n_check.yml
+++ b/.github/workflows/i18n_check.yml
@@ -11,8 +11,8 @@ jobs:
- name: "Get modified files"
id: changed_files
- if: github.event_name == 'pull_request' && github.event.pull_request.user.login != 'RiotTranslateBot'
- uses: tj-actions/changed-files@87697c0dca7dd44e37a2b79a79489332556ff1f3 # v37
+ if: github.event_name == 'pull_request' && github.event.pull_request.user.login != 'RiotTranslateBot' && github.event.pull_request.user.login != 't3chguy'
+ uses: tj-actions/changed-files@1c26215f3fbd51eba03bc199e5cbabdfc3584ce3 # v38
with:
files: |
src/i18n/strings/*
@@ -25,8 +25,8 @@ jobs:
github.event.pull_request.user.login != 'RiotTranslateBot' &&
steps.changed_files.outputs.any_modified == 'true'
run: |
- echo "Only translation files modified by `yarn i18n` can be committed - other translation files will confuse weblate in unrecoverable ways."
exit 1
+ echo "Only translation files modified by 'yarn i18n' can be committed - other translation files will confuse weblate in unrecoverable ways."
- uses: actions/setup-node@v3
with:
diff --git a/__mocks__/languages.json b/__mocks__/languages.json
index 36ec89561b2..35a400808b8 100644
--- a/__mocks__/languages.json
+++ b/__mocks__/languages.json
@@ -1,10 +1,4 @@
{
- "en": {
- "fileName": "en_EN.json",
- "label": "English"
- },
- "en-us": {
- "fileName": "en_US.json",
- "label": "English (US)"
- }
+ "en": "en_EN.json",
+ "en-us": "en_US.json"
}
diff --git a/cypress/e2e/audio-player/audio-player.spec.ts b/cypress/e2e/audio-player/audio-player.spec.ts
index 8f1ef8054c6..30470716c91 100644
--- a/cypress/e2e/audio-player/audio-player.spec.ts
+++ b/cypress/e2e/audio-player/audio-player.spec.ts
@@ -168,7 +168,8 @@ describe("Audio player", () => {
it("should be correctly rendered - light theme with monospace font", () => {
uploadFile("cypress/fixtures/1sec-long-name-audio-file.ogg");
- takeSnapshots("Selected EventTile of audio player (light theme, monospace font)", true); // Enable monospace
+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
+ //takeSnapshots("Selected EventTile of audio player (light theme, monospace font)", true); // Enable monospace
});
it("should be correctly rendered - high contrast theme", () => {
@@ -186,7 +187,8 @@ describe("Audio player", () => {
uploadFile("cypress/fixtures/1sec-long-name-audio-file.ogg");
- takeSnapshots("Selected EventTile of audio player (high contrast)");
+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
+ //takeSnapshots("Selected EventTile of audio player (high contrast)");
});
it("should be correctly rendered - dark theme", () => {
@@ -254,8 +256,8 @@ describe("Audio player", () => {
});
});
- // Take snapshots
- takeSnapshots("Selected EventTile of audio player with a reply");
+ // Disabled because flaky - see https://github.com/vector-im/element-web/issues/24881
+ //takeSnapshots("Selected EventTile of audio player with a reply");
});
it("should support creating a reply chain with multiple audio files", () => {
diff --git a/cypress/e2e/editing/editing.spec.ts b/cypress/e2e/editing/editing.spec.ts
index dafe15c885f..b7dacf86034 100644
--- a/cypress/e2e/editing/editing.spec.ts
+++ b/cypress/e2e/editing/editing.spec.ts
@@ -119,7 +119,7 @@ describe("Editing", () => {
// Assert that the date separator is rendered at the top
cy.get("li:nth-child(1) .mx_DateSeparator").within(() => {
cy.get("h2").within(() => {
- cy.findByText("Today");
+ cy.findByText("today").should("have.css", "text-transform", "capitalize");
});
});
@@ -184,7 +184,7 @@ describe("Editing", () => {
// Assert that the date is rendered
cy.get("li:nth-child(1) .mx_DateSeparator").within(() => {
cy.get("h2").within(() => {
- cy.findByText("Today");
+ cy.findByText("today").should("have.css", "text-transform", "capitalize");
});
});
diff --git a/cypress/e2e/login/login.spec.ts b/cypress/e2e/login/login.spec.ts
index 29c1f6f16bd..2bb7d4c6a00 100644
--- a/cypress/e2e/login/login.spec.ts
+++ b/cypress/e2e/login/login.spec.ts
@@ -17,6 +17,7 @@ limitations under the License.
///
{_t("You can also set up Secure Backup & manage your keys in Settings.")}
{_t( - "This process allows you to export the keys for messages " + - "you have received in encrypted rooms to a local file. You " + - "will then be able to import the file into another Matrix " + - "client in the future, so that client will also be able to " + - "decrypt these messages.", + "This process allows you to export the keys for messages you have received in encrypted rooms to a local file. You will then be able to import the file into another Matrix client in the future, so that client will also be able to decrypt these messages.", )}
{_t( - "The exported file will allow anyone who can read it to decrypt " + - "any encrypted messages that you can see, so you should be " + - "careful to keep it secure. To help with this, you should enter " + - "a unique passphrase below, which will only be used to encrypt the " + - "exported data. " + - "It will only be possible to import the data by using the same passphrase.", + "The exported file will allow anyone who can read it to decrypt any encrypted messages that you can see, so you should be careful to keep it secure. To help with this, you should enter a unique passphrase below, which will only be used to encrypt the exported data. It will only be possible to import the data by using the same passphrase.", )}
{_t( - "This process allows you to import encryption keys " + - "that you had previously exported from another Matrix " + - "client. You will then be able to decrypt any " + - "messages that the other client could decrypt.", + "This process allows you to import encryption keys that you had previously exported from another Matrix client. You will then be able to decrypt any messages that the other client could decrypt.", )}
{_t( - "The export file will be protected with a passphrase. " + - "You should enter the passphrase here, to decrypt the file.", + "The export file will be protected with a passphrase. You should enter the passphrase here, to decrypt the file.", )}
{_t( - "If you didn't set the new recovery method, an " + - "attacker may be trying to access your account. " + - "Change your account password and set a new recovery " + - "method immediately in Settings.", + "If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.", )}
); @@ -78,7 +75,7 @@ export default class NewRecoveryMethodDialog extends React.PureComponent{_t("This session is encrypting history using the new recovery method.")}
{hackWarning}{_t( - "This session has detected that your Security Phrase and key " + - "for Secure Messages have been removed.", + "This session has detected that your Security Phrase and key for Secure Messages have been removed.", )}
{_t( - "If you did this accidentally, you can setup Secure Messages on " + - "this session which will re-encrypt this session's message " + - "history with a new recovery method.", + "If you did this accidentally, you can setup Secure Messages on this session which will re-encrypt this session's message history with a new recovery method.", )}
{_t( - "If you didn't remove the recovery method, an " + - "attacker may be trying to access your account. " + - "Change your account password and set a new recovery " + - "method immediately in Settings.", + "If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.", )}