Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Clean up Ensu sync leftovers

Manav Rathi48e3f3f6b42d
diff --git a/mobile/native/android/apps/ensu/README.md b/mobile/native/android/apps/ensu/README.md
index 54dcce62f5..d175fb221d 100644
--- a/mobile/native/android/apps/ensu/README.md
+++ b/mobile/native/android/apps/ensu/README.md
@@ -72,4 +72,4 @@ Release builds use a debug keystore located at `debug.keystore`. For production
- `data/` β€” Repositories, network, storage.
- `crypto-auth-core/` β€” Cryptographic primitives (UniFFI-wrapped Rust).
-The Rust glue for `db` / `sync` / `inference` lives outside this app, at [`mobile/native/android/packages/rust/`](../../packages/rust/).
+The Rust glue for `db` / `inference` lives outside this app, at [`mobile/native/android/packages/rust/`](../../packages/rust/).
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/EnsuApp.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/EnsuApp.kt
index c9bcce494a..ee4cc6b198 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/EnsuApp.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/EnsuApp.kt
@@ -7,11 +7,9 @@ import androidx.compose.runtime.getValue
@Composable
fun EnsuApp(appViewModel: AppViewModel) {
val appState by appViewModel.store.state.collectAsState()
- val logs by appViewModel.logRepository.logs.collectAsState()
RootView(
appState = appState,
store = appViewModel.store,
- logs = logs,
logRepository = appViewModel.logRepository,
authService = appViewModel.authService,
currentEndpointFlow = appViewModel.currentEndpointFlow,
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt
index bcafcb31f2..e61eb21d0d 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt
@@ -64,7 +64,6 @@ import io.ente.ensu.designsystem.EnsuTypography
import io.ente.ensu.domain.model.Attachment
import io.ente.ensu.domain.model.AttachmentType
import io.ente.ensu.domain.model.EnsuDefaults
-import io.ente.ensu.domain.model.LogEntry
import io.ente.ensu.domain.model.MaxImageAttachmentsPerMessage
import io.ente.ensu.domain.state.AppState
import io.ente.ensu.domain.store.AppStore
@@ -86,7 +85,6 @@ import java.util.UUID
fun HomeView(
appState: AppState,
store: AppStore,
- logs: List<LogEntry>,
logRepository: FileLogRepository,
authService: EnsuAuthService,
currentEndpointFlow: Flow<String>,
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.kt
index d7cf413ae2..18c3453634 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/RootView.kt
@@ -10,7 +10,6 @@ import io.ente.ensu.designsystem.EnsuColor
import io.ente.ensu.data.auth.EnsuAuthService
import io.ente.ensu.data.logging.FileLogRepository
import io.ente.ensu.domain.model.EnsuDefaults
-import io.ente.ensu.domain.model.LogEntry
import io.ente.ensu.domain.state.AppState
import io.ente.ensu.domain.store.AppStore
import kotlinx.coroutines.flow.Flow
@@ -19,7 +18,6 @@ import kotlinx.coroutines.flow.Flow
fun RootView(
appState: AppState,
store: AppStore,
- logs: List<LogEntry>,
logRepository: FileLogRepository,
authService: EnsuAuthService,
currentEndpointFlow: Flow<String>,
@@ -35,7 +33,6 @@ fun RootView(
HomeView(
appState = appState,
store = store,
- logs = logs,
logRepository = logRepository,
authService = authService,
currentEndpointFlow = currentEndpointFlow,
diff --git a/rust/apps/ensu/changes/remove-unimplemented-sync.md b/rust/apps/ensu/changes/remove-unimplemented-sync.md
new file mode 100644
index 0000000000..b4aed42a92
--- /dev/null
+++ b/rust/apps/ensu/changes/remove-unimplemented-sync.md
@@ -0,0 +1 @@
+- Removed unimplemented sync code
diff --git a/web/apps/ensu/src/services/chat/crypto.ts b/web/apps/ensu/src/services/chat/crypto.ts
index 3b6a103ec6..68efb66b13 100644
--- a/web/apps/ensu/src/services/chat/crypto.ts
+++ b/web/apps/ensu/src/services/chat/crypto.ts
@@ -8,7 +8,7 @@ export interface EncryptedChatPayload {
const CHAT_FIELD_PREFIX = "enc:v1";
-/** Encrypt a JSON payload for storage/sync using the chat key (base64). */
+/** Encrypt a JSON payload for storage using the chat key (base64). */
export const encryptChatPayload = async (
payload: unknown,
chatKeyB64: string,