From 6580299f05ae9e44dd9fbe5f6b81ae609510014a Mon Sep 17 00:00:00 2001 From: null Date: Wed, 24 Jun 2026 18:55:40 -0500 Subject: [PATCH] feat(packs): route pack Discuss to the unified conversation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the orphaned in-thread QuestionDiscussionThread (which wrote to question_threads and sent no notifications) with a 'Discuss this together' button that opens the conversation (q_), same as the daily flow — so pack discussions are notified and appear in the Messages inbox. Co-Authored-By: Claude Opus 4.8 --- .../ui/questions/QuestionThreadScreen.kt | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/app/closer/ui/questions/QuestionThreadScreen.kt b/app/src/main/java/app/closer/ui/questions/QuestionThreadScreen.kt index 0d8b1c63..ffd17c2d 100644 --- a/app/src/main/java/app/closer/ui/questions/QuestionThreadScreen.kt +++ b/app/src/main/java/app/closer/ui/questions/QuestionThreadScreen.kt @@ -46,7 +46,6 @@ import app.closer.ui.components.ErrorState import app.closer.ui.components.LoadingState import app.closer.ui.questions.components.AnswerBubble import app.closer.ui.questions.components.QuestionAnswerInput -import app.closer.ui.questions.components.QuestionDiscussionThread import app.closer.ui.questions.components.QuestionHeader import app.closer.ui.theme.closerBackgroundBrush @@ -235,17 +234,19 @@ private fun RevealedPhase( ) } - QuestionDiscussionThread( - messages = state.messages, - currentUserId = viewModel.currentUserId, - partnerPhotoUrl = state.partnerPhotoUrl, - messageInput = state.messageInput, - onMessageInputChanged = viewModel::updateMessageInput, - onSendMessage = viewModel::sendMessage, - isRevealed = true, - onSendImage = viewModel::sendImage, - loadDecryptedMedia = viewModel::loadDecryptedMedia - ) + // Discussion now lives in the unified Messages conversation (q_) so it's notified + // and appears in the inbox — same as the daily flow. + Button( + onClick = { onNavigate(AppRoute.conversation(coupleId, "q_$questionId")) }, + modifier = Modifier.fillMaxWidth().heightIn(min = 48.dp), + shape = RoundedCornerShape(16.dp), + colors = ButtonDefaults.buttonColors( + containerColor = MaterialTheme.colorScheme.secondaryContainer, + contentColor = MaterialTheme.colorScheme.onSecondaryContainer + ) + ) { + Text("Discuss this together") + } // Navigation out of the thread Row(