diff --git a/Riot/Assets/en.lproj/Untranslated.strings b/Riot/Assets/en.lproj/Untranslated.strings index dd3e74084..4e116c5be 100644 --- a/Riot/Assets/en.lproj/Untranslated.strings +++ b/Riot/Assets/en.lproj/Untranslated.strings @@ -40,3 +40,5 @@ "onboarding_celebration_button" = "Let's go"; "image_picker_action_files" = "Choose from files"; + +"spaces_feature_not_available" = "This feature isn't available here. For now, you can do this with %@ on your computer."; diff --git a/Riot/Generated/UntranslatedStrings.swift b/Riot/Generated/UntranslatedStrings.swift index 5940e67f6..bd89722e0 100644 --- a/Riot/Generated/UntranslatedStrings.swift +++ b/Riot/Generated/UntranslatedStrings.swift @@ -82,6 +82,10 @@ public extension VectorL10n { static var onboardingPersonalizationSkip: String { return VectorL10n.tr("Untranslated", "onboarding_personalization_skip") } + /// This feature isn't available here. For now, you can do this with %@ on your computer. + static func spacesFeatureNotAvailable(_ p1: String) -> String { + return VectorL10n.tr("Untranslated", "spaces_feature_not_available", p1) + } } // swiftlint:enable function_parameter_count identifier_name line_length type_body_length diff --git a/Riot/Modules/SideMenu/SideMenuCoordinator.swift b/Riot/Modules/SideMenu/SideMenuCoordinator.swift index 174f3d0ff..76724add9 100644 --- a/Riot/Modules/SideMenu/SideMenuCoordinator.swift +++ b/Riot/Modules/SideMenu/SideMenuCoordinator.swift @@ -460,12 +460,12 @@ extension SideMenuCoordinator: SpaceMenuPresenterDelegate { } } case .addSpace: - AppDelegate.theDelegate().showAlert(withTitle: VectorL10n.spacesAddSpace, message: VectorL10n.spacesComingSoonDetail(AppInfo.current.displayName)) + AppDelegate.theDelegate().showAlert(withTitle: VectorL10n.spacesAddSpace, message: VectorL10n.spacesFeatureNotAvailable(AppInfo.current.displayName)) case .settings: if #available(iOS 14.0, *) { self.showSpaceSettings(spaceId: spaceId, session: session) } else { - AppDelegate.theDelegate().showAlert(withTitle: VectorL10n.settingsTitle, message: VectorL10n.spacesComingSoonDetail(AppInfo.current.displayName)) + AppDelegate.theDelegate().showAlert(withTitle: VectorL10n.settingsTitle, message: VectorL10n.spacesFeatureNotAvailable(AppInfo.current.displayName)) } case .invite: self.showSpaceInvite(spaceId: spaceId, session: session) diff --git a/changelog.d/5797.bugfix b/changelog.d/5797.bugfix new file mode 100644 index 000000000..df2986a5d --- /dev/null +++ b/changelog.d/5797.bugfix @@ -0,0 +1 @@ +Fixed "Add Space" error message