Move resend button into modal

This commit is contained in:
Jack Kingsman
2026-02-21 17:01:13 -08:00
parent 1e53fe9515
commit 7463f4e032
7 changed files with 411 additions and 139 deletions
+10 -3
View File
@@ -131,7 +131,7 @@ export function useConversationRouter({
setActiveConversationState(publicConversation);
hasSetDefaultConversation.current = true;
}
}, [channels, activeConversation, getPublicChannelConversation]);
}, [channels, activeConversation, getPublicChannelConversation, hasSetDefaultConversation]);
// Phase 2: Resolve contact hash (only if phase 1 didn't set a conversation)
useEffect(() => {
@@ -186,7 +186,14 @@ export function useConversationRouter({
hasSetDefaultConversation.current = true;
}
}
}, [contacts, channels, activeConversation, contactsLoaded, getPublicChannelConversation]);
}, [
contacts,
channels,
activeConversation,
contactsLoaded,
getPublicChannelConversation,
hasSetDefaultConversation,
]);
// Keep ref in sync and update URL hash
useEffect(() => {
@@ -221,7 +228,7 @@ export function useConversationRouter({
id: publicChannel.key,
name: publicChannel.name,
});
}, [activeConversation, channels]);
}, [activeConversation, channels, hasSetDefaultConversation, pendingDeleteFallbackRef]);
// Handle conversation selection (closes sidebar on mobile)
const handleSelectConversation = useCallback(