sync changes to chat info
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user