diff --git a/packages/shared/src/features/conversation/schema.ts b/packages/shared/src/features/conversation/schema.ts index 57c97e3..ddf4686 100644 --- a/packages/shared/src/features/conversation/schema.ts +++ b/packages/shared/src/features/conversation/schema.ts @@ -4,6 +4,7 @@ export const conversation = z.object({ user_id: z.number(), calls: z.array(z.uuidv4()).optional(), last_message_at: z.number(), + username: z.string().optional(), // Todo: Remove this }); export const community = z.object({ diff --git a/packages/ttp/src/core.ts b/packages/ttp/src/core.ts index 6844c20..32062d8 100644 --- a/packages/ttp/src/core.ts +++ b/packages/ttp/src/core.ts @@ -276,6 +276,7 @@ const DATA_TYPES = [ "calls", "timeout", "has_admin", + "last_message_at", ] as const; const COMMUNICATION_TYPE_BY_NAME = createIndexMap(COMMUNICATION_TYPES); @@ -303,6 +304,7 @@ registerDataKinds("number", [ "send_time", "sub_level", "sub_end", + "last_message_at", ]); registerDataKinds("string", [ diff --git a/todo.md b/todo.md index bba9d6e..5bdf43c 100644 --- a/todo.md +++ b/todo.md @@ -1,3 +1,2 @@ - Calculate message height and pass to virtualizer (-> packages/chat/src/components/input.tsx) -- Review legal screen stuff -- Fix that location change doesn't trigger loggedIn so the user is stuck on a connecting page +- Split ttp codec into separate file