Message chunk loading test

This commit is contained in:
2025-12-22 19:55:05 +01:00
parent eeae53bd01
commit f92449c493
12 changed files with 61 additions and 147 deletions
+2 -4
View File
@@ -3,6 +3,7 @@ import { StringMap } from "./typeUtils";
import { UserProfile } from "@/hooks/get-user";
import { Channel, Message, Server } from "./types";
import { ClientSettings } from "./settings";
import { MessageStore } from "@/hooks/use-messages";
export type SetState<T> = Dispatch<SetStateAction<T>>;
@@ -22,10 +23,7 @@ export default interface App {
profiles: StringMap<UserProfile | null>;
setProfiles: SetState<StringMap<UserProfile | null>>;
messages: Message[];
addMessage: (v: Message) => void;
deleteMessage: (id: number) => void;
editMessage: (id: number, v: string) => void;
privateMessages: MessageStore;
sidebarOpen: boolean;
setSidebarOpen: SetState<boolean>;