This commit is contained in:
Mike Dilger 2025-02-25 11:47:31 +13:00
parent 7b988d820d
commit 47f91ce3e2
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4

View File

@ -163,11 +163,10 @@ pub fn handle_inner(pubkey: Pubkey, command: Value) -> Result<Option<Value>, Err
filter
};
let screen = |e: &Event| -> ScreenResult {
if allowed_kinds.contains(&e.kind()) {
ScreenResult::Mismatch
} else if e.kind().is_ephemeral() {
ScreenResult::Mismatch
} else if crate::is_authorized_user(e.pubkey()) {
if allowed_kinds.contains(&e.kind())
|| e.kind().is_ephemeral()
|| crate::is_authorized_user(e.pubkey())
{
ScreenResult::Mismatch
} else {
ScreenResult::Match