Skip to content

Commit 692ac53

Browse files
committed
code formatting
1 parent 325271b commit 692ac53

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/contextual/DuckChatContextualViewModel.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ class DuckChatContextualViewModel @Inject constructor(
308308
showContext = _viewState.value.allowsAutomaticContextAttachment && _viewState.value.showContext,
309309
)
310310
}
311+
} else {
312+
_viewState.update {
313+
inputMode.copy(
314+
contextTitle = title,
315+
contextUrl = url,
316+
tabId = tabId,
317+
)
318+
}
311319
}
312320
}
313321
}

0 commit comments

Comments
 (0)