diff --git a/Cargo.toml b/Cargo.toml index adab7ff..b42ad1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ uuid = { version = "1.3.0", features = [ "serde", ] } reqwest = { version = "0.11", features = ["json"] } -mostro-core = "0.3.10" +mostro-core = "0.3.11" tracing = "0.1.37" tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } config = "0.13.3" diff --git a/src/app.rs b/src/app.rs index a0ee44f..ab0bd87 100644 --- a/src/app.rs +++ b/src/app.rs @@ -122,6 +122,9 @@ pub async fn run( ) .await?; } + Action::AdminTakeDispute => { + println!("AdminTakeDispute: {:#?}", msg); + } _ => todo!(), } } diff --git a/src/app/dispute.rs b/src/app/dispute.rs index 6569b6b..84b71b1 100644 --- a/src/app/dispute.rs +++ b/src/app/dispute.rs @@ -87,13 +87,10 @@ pub async fn dispute_action( let message = message.as_json()?; let counterpart_pubkey = XOnlyPublicKey::from_bech32(counterpart)?; send_dm(client, my_keys, &counterpart_pubkey, message).await?; + // We create a tag to show status of the dispute + let tags = vec![("s".to_string(), dispute.status.to_string())]; // nip33 kind with dispute id as identifier - let event = new_event( - my_keys, - "".to_string(), - dispute.id.to_string(), - ([]).to_vec(), - )?; + let event = new_event(my_keys, "".to_string(), dispute.id.to_string(), tags)?; info!("Dispute event to be published: {event:#?}"); client.send_event(event).await?;