events: Fix missing condition in Unsigned::is_empty under unstable-pre-spec
This commit is contained in:
parent
cbd4457f64
commit
c5550bdbc8
@ -41,8 +41,16 @@ impl Unsigned {
|
||||
/// events. Do not use it to determine whether an incoming `unsigned` field was present - it
|
||||
/// could still have been present but contained none of the known fields.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
#[cfg(not(feature = "unstable-pre-spec"))]
|
||||
{
|
||||
self.age.is_none() && self.transaction_id.is_none()
|
||||
}
|
||||
|
||||
#[cfg(feature = "unstable-pre-spec")]
|
||||
{
|
||||
self.age.is_none() && self.transaction_id.is_none() && self.relations.is_none()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Extra information about a redacted event that is not incorporated into the event's hash.
|
||||
|
Loading…
x
Reference in New Issue
Block a user