mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-25 06:13:16 +00:00
Comment on what transaction IDs are
This commit is contained in:
1 parent
1cb9fabade
commit
32b0eafdb3
1 file changed
+3
@@ -505,6 +505,9 @@ impl EventInternalMetadata {
|
||||
}
|
||||
|
||||
/// The transaction ID, if set when the event was created.
|
||||
///
|
||||
/// The transaction ID comes from the `txn_id` path parameter of the
|
||||
/// client-server API request used to send the event.
|
||||
pub fn txn_id(&self) -> PyResult<Option<String>> {
|
||||
Ok(self.read_inner()?.get_txn_id().map(|s| s.to_owned()))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user