π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove Ensu image upload feature flags
Manav Rathibe86de8d4f3c
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.ktindex e600441216..f0df552ddb 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt@@ -59,7 +59,6 @@ import io.ente.ensu.domain.model.AttachmentTypeimport io.ente.ensu.domain.model.ChatMessageimport io.ente.ensu.domain.model.MaxImageAttachmentsPerMessageimport io.ente.ensu.domain.util.formattedFileSize-import io.ente.ensu.utils.EnsuFeatureFlagsimport io.ente.ensu.utils.rememberEnsuHapticsimport kotlinx.coroutines.delay@@ -73,7 +72,6 @@ internal fun MessageInput(isProcessingAttachments: Boolean,isGenerating: Boolean,isDownloading: Boolean,- downloadPercent: Int?,isAttachmentDownloadBlocked: Boolean,attachmentDownloadPercent: Int?,onMessageChange: (String) -> Unit,@@ -268,7 +266,7 @@ internal fun MessageInput(Spacer(modifier = Modifier.width(EnsuSpacing.sm.dp))- if (EnsuFeatureFlags.enableImageUploads && editingMessage == null) {+ if (editingMessage == null) {val canAddImageAttachment = !isGenerating &&!isDownloading &&!isAttachmentDownloadBlocked &&diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.ktindex 42780232e2..7ad80dc31b 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt@@ -263,7 +263,6 @@ fun ChatView(isProcessingAttachments = chatState.isProcessingAttachments,isGenerating = chatState.isGenerating,isDownloading = chatState.isDownloading,- downloadPercent = chatState.downloadPercent,isAttachmentDownloadBlocked = chatState.isAttachmentDownloadBlocked,attachmentDownloadPercent = chatState.attachmentDownloadProgress,onMessageChange = onMessageChange,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.ktdeleted file mode 100644index a23e20e6be..0000000000--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.kt+++ /dev/null@@ -1,5 +0,0 @@-package io.ente.ensu.utils--object EnsuFeatureFlags {- const val enableImageUploads = true-}diff --git a/mobile/native/darwin/Apps/Ensu/Ensu/Chat/MessageInputView.swift b/mobile/native/darwin/Apps/Ensu/Ensu/Chat/MessageInputView.swiftindex 9b755d81e8..edd4307966 100644--- a/mobile/native/darwin/Apps/Ensu/Ensu/Chat/MessageInputView.swift+++ b/mobile/native/darwin/Apps/Ensu/Ensu/Chat/MessageInputView.swift@@ -164,7 +164,7 @@ struct MessageInputView: View {)#endif- if EnsuFeatureFlags.enableImageUploads && editingMessage == nil {+ if editingMessage == nil {let canUseAttachment = !isGenerating &&!isDownloading &&!isAttachmentDownloadBlocked &&diff --git a/mobile/native/darwin/Apps/Ensu/Ensu/FeatureFlags.swift b/mobile/native/darwin/Apps/Ensu/Ensu/FeatureFlags.swiftdeleted file mode 100644index a3a3bf4892..0000000000--- a/mobile/native/darwin/Apps/Ensu/Ensu/FeatureFlags.swift+++ /dev/null@@ -1,5 +0,0 @@-import Foundation--enum EnsuFeatureFlags {- static let enableImageUploads = true-}diff --git a/mobile/native/darwin/Apps/Ensu/Ensu/Services/InferenceTypes.swift b/mobile/native/darwin/Apps/Ensu/Ensu/Services/InferenceTypes.swiftdeleted file mode 100644index b45a73a015..0000000000--- a/mobile/native/darwin/Apps/Ensu/Ensu/Services/InferenceTypes.swift+++ /dev/null@@ -1 +0,0 @@-// Types live in InferenceRsProvider.swift to support fallback builds.diff --git a/web/apps/ensu/src/pages/chat.tsx b/web/apps/ensu/src/pages/chat.tsxindex 8e6f54a181..49e6cb0f4b 100644--- a/web/apps/ensu/src/pages/chat.tsx+++ b/web/apps/ensu/src/pages/chat.tsx@@ -32,7 +32,6 @@ import {type ChatMessage,type ChatSession,} from "@/services/chat/store";-import { DESKTOP_IMAGE_ATTACHMENTS_ENABLED } from "@/services/featureFlags";import {DEFAULT_MODEL,FALLBACK_DESKTOP_MODEL_PRESETS,@@ -1638,9 +1637,7 @@ const Page: React.FC = () => {const drawerWidth = isSmall ? 300 : drawerCollapsed ? 0 : 320;const desktopBreakpoint = theme.breakpoints.values.lg ?? 1200;const isDesktopOverlay = !isSmall && chatViewportWidth >= desktopBreakpoint;- const showAttachmentPicker = isTauriRuntime;- const showImageAttachment =- showAttachmentPicker && DESKTOP_IMAGE_ATTACHMENTS_ENABLED;+ const showImageAttachment = isTauriRuntime;const showDownloadProgress =!!downloadStatus?.status && downloadStatus.status !== "Ready";const showModelGate =@@ -4109,7 +4106,7 @@ const Page: React.FC = () => {isGenerating={isGenerating}handleSend={handleSend}handleStopGeneration={handleStopGeneration}- showAttachmentPicker={showAttachmentPicker}+ showAttachmentPicker={isTauriRuntime}openAttachmentMenu={openAttachmentMenu}attachmentAnchor={attachmentAnchor}closeAttachmentMenu={closeAttachmentMenu}diff --git a/web/apps/ensu/src/services/featureFlags.ts b/web/apps/ensu/src/services/featureFlags.tsdeleted file mode 100644index 5eae76abf1..0000000000--- a/web/apps/ensu/src/services/featureFlags.ts+++ /dev/null@@ -1 +0,0 @@-export const DESKTOP_IMAGE_ATTACHMENTS_ENABLED = true;