Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit b4b6ef6

Browse files
committed
Fix inverse related match serialize keys
1 parent 2a0c051 commit b4b6ef6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rust/src/push/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,14 @@ pub enum KnownCondition {
334334
EventPropertyIs(EventPropertyIsCondition),
335335
#[serde(rename = "im.nheko.msc3664.related_event_match")]
336336
RelatedEventMatch(RelatedEventMatchCondition),
337-
#[serde(rename = "im.nheko.msc3664.related_event_match")]
337+
// Inverse of the related event match
338+
#[serde(rename = "im.nheko.msc3664.inverse_related_event_match")]
338339
InverseRelatedEventMatch(RelatedEventMatchCondition),
339340
// Identical to related_event_match but gives predefined patterns. Cannot be added by users.
340341
#[serde(skip_deserializing, rename = "im.nheko.msc3664.related_event_match")]
341342
RelatedEventMatchType(RelatedEventMatchTypeCondition),
342-
#[serde(skip_deserializing, rename = "im.nheko.msc3664.related_event_match")]
343+
// Inverse of related event match type
344+
#[serde(skip_deserializing, rename = "im.nheko.msc3664.inverse_related_event_match")]
343345
InverseRelatedEventMatchType(RelatedEventMatchTypeCondition),
344346
EventPropertyContains(EventPropertyIsCondition),
345347
// Identical to exact_event_property_contains but gives predefined patterns. Cannot be added by users.

0 commit comments

Comments
 (0)