diff --git a/packages/web/src/components/layout/ChannelSidebar.tsx b/packages/web/src/components/layout/ChannelSidebar.tsx index de146dc6..afb74de5 100644 --- a/packages/web/src/components/layout/ChannelSidebar.tsx +++ b/packages/web/src/components/layout/ChannelSidebar.tsx @@ -886,31 +886,6 @@ export function ChannelSidebar() { {floatingPanel} - setLeaveGroupDmId(null)} - onConfirm={async () => { - if (!leaveGroupDmId) return; - setLeaveGroupDmLoading(true); - try { - if (currentChannelId === leaveGroupDmId) { - navigate('/channels/@me'); - setCurrentChannel(null); - } - await useSpaceStore.getState().leaveDm(leaveGroupDmId); - setLeaveGroupDmId(null); - } catch { - // leaveDm already handles errors - } finally { - setLeaveGroupDmLoading(false); - } - }} - title="Leave Group DM" - description="Are you sure you want to leave? You won't be able to rejoin unless someone adds you back." - confirmLabel="Leave" - variant="danger" - loading={leaveGroupDmLoading} - /> setDeleteCategoryId(null)}