Spaces:
Sleeping
Sleeping
Andrew
commited on
Commit
·
e8d6c76
1
Parent(s):
03dedb3
Archived-persona filter
Browse files
src/routes/conversation/[id]/+server.ts
CHANGED
|
@@ -466,8 +466,8 @@ export async function POST({ request, locals, params, getClientAddress }) {
|
|
| 466 |
|
| 467 |
// Get all active personas
|
| 468 |
const activePersonas = activePersonaIds
|
| 469 |
-
.map((id) => userSettings?.personas?.find((p) => p.id === id))
|
| 470 |
-
.filter((p): p is import("$lib/types/Persona").Persona => p !== undefined);
|
| 471 |
|
| 472 |
// Determine if we should use multi-persona mode
|
| 473 |
const useMultiPersona = activePersonas.length > 1;
|
|
|
|
| 466 |
|
| 467 |
// Get all active personas
|
| 468 |
const activePersonas = activePersonaIds
|
| 469 |
+
.map((id) => userSettings?.personas?.find((p) => p.id === id && !p.archived))
|
| 470 |
+
.filter((p): p is import("$lib/types/Persona").Persona => p !== undefined && !p.archived);
|
| 471 |
|
| 472 |
// Determine if we should use multi-persona mode
|
| 473 |
const useMultiPersona = activePersonas.length > 1;
|