Modern Apps git

← Modern-Apps.git

openassistant: remove + for new conversation

Commit
faf12d3d72571ca719d16d6015a003d8fccbe323
Author
Vayun Mathur <[email protected]>
When
2026-03-18 00:03 UTC (8 months ago)
Parents
6b8bb83

Diff

openassistant/src/main/java/com/vayunmathur/openassistant/LiteRTChatUi.kt
diff --git a/openassistant/src/main/java/com/vayunmathur/openassistant/LiteRTChatUi.kt b/openassistant/src/main/java/com/vayunmathur/openassistant/LiteRTChatUi.ktindex ee2a005f51..a7825dfdd5 100644--- a/openassistant/src/main/java/com/vayunmathur/openassistant/LiteRTChatUi.kt+++ b/openassistant/src/main/java/com/vayunmathur/openassistant/LiteRTChatUi.kt@@ -191,8 +191,10 @@ fun LiteRTChatUi(backStack: NavBackStack<Route>, conversationId: Long, viewModel                             containerColor = MaterialTheme.colorScheme.surface                         ),                         actions = {-                            IconButton({backStack.reset(Route.ConversationPage(0))}) {-                                IconAdd()+                            if(conversationId != 0L) {+                                IconButton({ backStack.reset(Route.ConversationPage(0)) }) {+                                    IconAdd()+                                }                             }                         },                         navigationIcon = {