From e81a5869c3eb934a2d9b2e6c54007bc6a2f5ad22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20C=C3=B3rdoba?= Date: Wed, 3 Jan 2024 14:21:12 +0100 Subject: [PATCH] Changed trait --- .../crates/hc_zome_trait_pending_notifications/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(