diff --git a/src/notification_manager/mute_manager.rs b/src/notification_manager/mute_manager.rs index 0205ac6..97f5940 100644 --- a/src/notification_manager/mute_manager.rs +++ b/src/notification_manager/mute_manager.rs @@ -2,7 +2,6 @@ use super::ExtendedEvent; use nostr_sdk::prelude::*; pub struct MuteManager { - relay_url: String, client: Client, } @@ -11,7 +10,7 @@ impl MuteManager { let client = Client::new(&Keys::generate()); client.add_relay(relay_url.clone()).await?; client.connect().await; - Ok(MuteManager { relay_url, client }) + Ok(MuteManager { client }) } pub async fn should_mute_notification_for_pubkey( diff --git a/src/notification_manager/notification_manager.rs b/src/notification_manager/notification_manager.rs index ae477e9..45bb2bc 100644 --- a/src/notification_manager/notification_manager.rs +++ b/src/notification_manager/notification_manager.rs @@ -19,10 +19,6 @@ use std::fs::File; pub struct NotificationManager { db: r2d2::Pool, - apns_private_key_path: String, - apns_private_key_id: String, - apns_team_id: String, - apns_environment: a2::client::Endpoint, apns_topic: String, apns_client: Client, @@ -56,10 +52,6 @@ impl NotificationManager { )?; Ok(Self { - apns_private_key_path, - apns_private_key_id, - apns_team_id, - apns_environment, apns_topic, apns_client: client, db, @@ -209,13 +201,6 @@ impl NotificationManager { Ok(relevant_pubkeys) } - fn pubkeys_subscribed_to_event( - &self, - event: &Event, - ) -> Result, Box> { - self.pubkeys_subscribed_to_event_id(&event.id) - } - fn pubkeys_subscribed_to_event_id( &self, event_id: &EventId,