change own contact when name setting changes

This commit is contained in:
marlon-erler
2026-09-27 03:05:01 +02:00
parent a9fba4646d
commit fc5486a0f7
2 changed files with 49 additions and 51 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ import ContactListViewModel from "./ViewModel/Global/contactViewModel";
// models
const storageModel = new StorageModel();
const settingsModel = new SettingsModel(storageModel);
const contactListModel = new ContactListModel(storageModel);
const settingsModel = new SettingsModel(storageModel, contactListModel);
const connectionModel = new ConnectionModel(storageModel);
const chatListModel = new ChatListModel(
storageModel,
@@ -46,8 +46,8 @@ const coreViewModel = new CoreViewModel(
);
const storageViewModel = new StorageViewModel(coreViewModel);
const settingsViewModel = new SettingsViewModel(coreViewModel, settingsModel);
const contactListViewModel = new ContactListViewModel(contactListModel);
const settingsViewModel = new SettingsViewModel(coreViewModel, settingsModel);
const connectionViewModel = new ConnectionViewModel(coreViewModel);
const chatListViewModel = new ChatListViewModel(
coreViewModel,