avoid mobile focus on conversation selection

This commit is contained in:
2026-07-23 20:29:53 -07:00
parent a69c641481
commit 211fad972a

View File

@@ -1467,7 +1467,8 @@ export default function App() {
if (isActiveSelectionSending) return;
const hasWorkspaceSelection = Boolean(selectedItem) || draftKind !== null;
if (!hasWorkspaceSelection) return;
if (suppressNextMobileComposerFocusRef.current && isMobileLayout()) {
const mobileLayout = isMobileLayout();
if (mobileLayout && (Boolean(selectedItem) || suppressNextMobileComposerFocusRef.current)) {
suppressNextMobileComposerFocusRef.current = false;
return;
}