(projectId: string, chat = false)
| 93 | } |
| 94 | |
| 95 | export async function getProjectThreadsQuery(projectId: string, chat = false): Promise<Thread[]> { |
| 96 | return (await window.piDesktop?.getProjectThreads?.(projectId, { chat })) ?? [] |
| 97 | } |
| 98 | |
| 99 | export async function getChatSidebarStateQuery( |
| 100 | selectedGroupId?: string | null | undefined, |