finish outbox and send methods

This commit is contained in:
marlon-erler
2024-07-20 20:03:46 +02:00
parent 92383f772e
commit bdbd2ac8b6
3 changed files with 52 additions and 8 deletions
-5
View File
@@ -18,7 +18,6 @@ export class ChatModel {
messages = new Set<ChatMessage>();
objects = new Map<string, ChatObject>();
outbox = new Set<ChatMessage>();
// paths
get infoPath(): string[] {
@@ -37,10 +36,6 @@ export class ChatModel {
return storageKeys.chatObjects(this.id);
}
get outboxDirPath(): string[] {
return storageKeys.chatOutbox(this.id);
}
getMessagePath = (id: string): string[] => {
return [...this.messageDirPath, id];
};