sync changes to chat info

This commit is contained in:
marlon-erler
2026-09-26 15:16:16 +02:00
parent bae7d21f04
commit 2835510992
5 changed files with 375 additions and 346 deletions
+2 -6
View File
@@ -71,8 +71,8 @@ export default class SettingsPageViewModel extends Context {
this.encryptionKeyInput.callSubscriptions();
};
applyColor = (newColor: Colors): void => {
this.chatViewModel.setColor(newColor);
applyColor = (): void => {
this.chatViewModel.setColor(this.color.value);
};
remove = (): void => {
@@ -122,10 +122,6 @@ export default class SettingsPageViewModel extends Context {
this.chatViewModel.chatModel.info.encryptionKey,
);
this.color.subscribe((newColor) => {
this.applyColor(newColor);
});
this.chatViewModel.registerContext(ChatPageTypes.Settings, this);
}
}