add guard cannotSetPrimaryChannel

This commit is contained in:
marlon-erler
2024-07-20 23:22:08 +02:00
parent 1e2868d416
commit 41ff3c787a
3 changed files with 25 additions and 3 deletions
+5
View File
@@ -45,6 +45,11 @@ export default class ChatViewModel {
this.primaryChannelInput.value == "" ||
this.primaryChannelInput.value == this.primaryChannel.value
);
cannotAddSecondaryChannel: React.State<boolean> = React.createProxyState(
[this.newSecondaryChannelInput],
() =>
this.newSecondaryChannelInput.value == ""
);
cannotSetEncryptionKey: React.State<boolean>;
cannotSendMessage: React.State<boolean>;