diff --git a/notifications/crates/hc_zome_trait_pending_notifications/src/lib.rs b/notifications/crates/hc_zome_trait_pending_notifications/src/lib.rs index ed68474..29123db 100644 --- a/notifications/crates/hc_zome_trait_pending_notifications/src/lib.rs +++ b/notifications/crates/hc_zome_trait_pending_notifications/src/lib.rs @@ -19,12 +19,13 @@ pub struct Notification { #[derive(Serialize, Deserialize, Debug)] pub struct GetNotificationInput { - notification_hash: AnyDhtHash, - locale: String, + pub notification_hash: AnyDhtHash, + pub locale: String, } #[zome_trait] pub trait PendingNotifications { + /// Returning None here means that the notification was not found fn get_notification(input: GetNotificationInput) -> ExternResult>; fn emit_new_pending_notification(