fix
This commit is contained in:
@@ -618,11 +618,11 @@ impl ChatPanel {
|
||||
}
|
||||
}
|
||||
Command::ChangeSigner(kind) => {
|
||||
let is_nip4e_enabled = AppSettings::get_encryption_key(cx);
|
||||
let settings = AppSettings::global(cx);
|
||||
let is_nip4e_enabled = settings.read(cx).is_nip4e_enabled(cx);
|
||||
let is_force_nip4e = *kind == SignerKind::Encryption || *kind == SignerKind::Auto;
|
||||
|
||||
if !is_nip4e_enabled
|
||||
&& (*kind == SignerKind::Encryption || *kind == SignerKind::Auto)
|
||||
{
|
||||
if !is_nip4e_enabled && is_force_nip4e {
|
||||
window.push_notification("Decoupling Encryption Key is not enabled", cx);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user