Modern Apps git

← Modern-Apps.git

communicate: fix the compile errors left by the delete feature (#542)

Commit
b0e7b7d29dbb273662b6449b3882895c6fef1955
Author
vayun-mathur <[email protected]>
When
2026-08-19 23:57 UTC (3 months ago)
Parents
cfd58a4

Diff

communicate/src/main/java/com/vayunmathur/communicate/data/CommunicateRepository.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/CommunicateRepository.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/CommunicateRepository.ktindex 92599d3449..3af0520aaf 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/CommunicateRepository.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/CommunicateRepository.kt@@ -761,7 +761,10 @@ object CommunicateRepository {         when (thread.line) {             CommunicateLine.Sim -> deleteSimThread(context, thread.threadId)             CommunicateLine.GoogleVoice -> thread.remoteId?.let {-                runCatching { GoogleVoiceClient.get(context).updateThreadAttributes(it, com.vayunmathur.communicate.data.googlevoice.GoogleVoiceParser.ThreadAction.Archive) }.getOrDefault(false)+                runCatching {+                    GoogleVoiceClient.get(context).updateThreadAttributes(it, com.vayunmathur.communicate.data.googlevoice.GoogleVoiceParser.ThreadAction.Archive)+                    true+                }.getOrDefault(false)             } ?: false             CommunicateLine.WhatsApp -> thread.remoteId?.let { jid ->                 runCatching { WhatsAppClient.deleteChat(jid, leaveGroup = true) }.getOrDefault(false)
communicate/src/main/java/com/vayunmathur/communicate/ui/CallLogsScreen.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/ui/CallLogsScreen.kt b/communicate/src/main/java/com/vayunmathur/communicate/ui/CallLogsScreen.ktindex ce6a1f5094..184a4ceb4f 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/ui/CallLogsScreen.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/ui/CallLogsScreen.kt@@ -10,7 +10,9 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue import androidx.compose.runtime.produceState+import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext@@ -82,7 +84,7 @@ fun CallLogsScreen() {                     com.vayunmathur.library.ui.ConfirmDialog(                         title = stringResource(R.string.delete_call_log_title),                         message = stringResource(R.string.delete_call_log_message),-                        confirmLabel = stringResource(R.string.delete),+                        confirmLabel = stringResource(com.vayunmathur.library.ui.R.string.delete),                         dismissLabel = stringResource(com.vayunmathur.library.ui.R.string.cancel),                         destructive = true,                         onConfirm = {
communicate/src/main/java/com/vayunmathur/communicate/ui/MessagesScreen.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/ui/MessagesScreen.kt b/communicate/src/main/java/com/vayunmathur/communicate/ui/MessagesScreen.ktindex d77a4df03b..405707ebb8 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/ui/MessagesScreen.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/ui/MessagesScreen.kt@@ -260,7 +260,7 @@ fun MessagesScreen(onOpenThread: (SmsThread) -> Unit, onOpenAccounts: () -> Unit                             com.vayunmathur.library.ui.ConfirmDialog(                                 title = stringResource(R.string.delete_conversation_title),                                 message = stringResource(R.string.delete_conversation_message),-                                confirmLabel = stringResource(R.string.delete),+                                confirmLabel = stringResource(com.vayunmathur.library.ui.R.string.delete),                                 dismissLabel = stringResource(com.vayunmathur.library.ui.R.string.cancel),                                 destructive = true,                                 onConfirm = {