implement contacts model and vm with chat model

This commit is contained in:
marlon-erler
2026-09-27 02:41:49 +02:00
parent 66a88ac1b1
commit c5d61a5790
5 changed files with 31 additions and 28 deletions
+5
View File
@@ -20,15 +20,19 @@ import SettingsModel from "./Model/Global/settingsModel";
import FileTransferModel from "./Model/Global/fileTransferModel";
import ConnectionModel from "./Model/Global/connectionModel";
import ChatListModel from "./Model/Chat/chatListModel";
import ContactListModel from "./Model/Global/contactListModel";
import ContactListViewModel from "./ViewModel/Global/contactViewModel";
// models
const storageModel = new StorageModel();
const settingsModel = new SettingsModel(storageModel);
const contactListModel = new ContactListModel(storageModel);
const connectionModel = new ConnectionModel(storageModel);
const chatListModel = new ChatListModel(
storageModel,
settingsModel,
connectionModel,
contactListModel,
);
const fileTransferModel = new FileTransferModel(storageModel, connectionModel);
@@ -43,6 +47,7 @@ const coreViewModel = new CoreViewModel(
const storageViewModel = new StorageViewModel(coreViewModel);
const settingsViewModel = new SettingsViewModel(coreViewModel);
const contactListViewModel = new ContactListViewModel(contactListModel);
const connectionViewModel = new ConnectionViewModel(coreViewModel);
const chatListViewModel = new ChatListViewModel(
coreViewModel,