From 76f313d4451d559829bf92ca1bad9ff789e74bb1 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Wed, 30 Oct 2024 19:57:11 +0100 Subject: [PATCH 1/2] Correct guid field --- src/envelope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/envelope.rs b/src/envelope.rs index 2d10194ca..31ec526ff 100644 --- a/src/envelope.rs +++ b/src/envelope.rs @@ -90,7 +90,7 @@ impl Envelope { r#type: Some(entity.r#type), timestamp: Some(entity.timestamp), server_timestamp: Some(entity.server_timestamp), - server_guid: entity.source_uuid, + server_guid: Some(entity.guid), content: entity.content, ..Default::default() } From df72d42f5f1b6867aa70e7b39f3844012aa5559f Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Wed, 30 Oct 2024 19:57:30 +0100 Subject: [PATCH 2/2] Add guid to new_with_source --- src/envelope.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/envelope.rs b/src/envelope.rs index 31ec526ff..1d2240f37 100644 --- a/src/envelope.rs +++ b/src/envelope.rs @@ -102,6 +102,7 @@ impl Envelope { source_device: Some(entity.source_device), timestamp: Some(entity.timestamp), server_timestamp: Some(entity.server_timestamp), + server_guid: Some(entity.guid), source_service_id: Some(source.uuid.to_string()), content: entity.content, ..Default::default()