Fixed get_conversations
This commit is contained in:
parent
374b8cd4e2
commit
294205e873
3 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ export const conversation = z.object({
|
||||||
user_id: z.number(),
|
user_id: z.number(),
|
||||||
calls: z.array(z.uuidv4()).optional(),
|
calls: z.array(z.uuidv4()).optional(),
|
||||||
last_message_at: z.number(),
|
last_message_at: z.number(),
|
||||||
|
username: z.string().optional(), // Todo: Remove this
|
||||||
});
|
});
|
||||||
|
|
||||||
export const community = z.object({
|
export const community = z.object({
|
||||||
|
|
|
||||||
|
|
@ -276,6 +276,7 @@ const DATA_TYPES = [
|
||||||
"calls",
|
"calls",
|
||||||
"timeout",
|
"timeout",
|
||||||
"has_admin",
|
"has_admin",
|
||||||
|
"last_message_at",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
const COMMUNICATION_TYPE_BY_NAME = createIndexMap(COMMUNICATION_TYPES);
|
const COMMUNICATION_TYPE_BY_NAME = createIndexMap(COMMUNICATION_TYPES);
|
||||||
|
|
@ -303,6 +304,7 @@ registerDataKinds("number", [
|
||||||
"send_time",
|
"send_time",
|
||||||
"sub_level",
|
"sub_level",
|
||||||
"sub_end",
|
"sub_end",
|
||||||
|
"last_message_at",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
registerDataKinds("string", [
|
registerDataKinds("string", [
|
||||||
|
|
|
||||||
3
todo.md
3
todo.md
|
|
@ -1,3 +1,2 @@
|
||||||
- Calculate message height and pass to virtualizer (-> packages/chat/src/components/input.tsx)
|
- Calculate message height and pass to virtualizer (-> packages/chat/src/components/input.tsx)
|
||||||
- Review legal screen stuff
|
- Split ttp codec into separate file
|
||||||
- Fix that location change doesn't trigger loggedIn so the user is stuck on a connecting page
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue