mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-21 04:53:14 -06:00
Don't omit pattern key if empty.
This is needed to match state events with an empty value. Fixes #2882
This commit is contained in:
parent
31f56ac3f4
commit
8a852ba054
|
|
@ -14,7 +14,7 @@ type Condition struct {
|
||||||
|
|
||||||
// Pattern indicates the value pattern that must match. Required
|
// Pattern indicates the value pattern that must match. Required
|
||||||
// for EventMatchCondition.
|
// for EventMatchCondition.
|
||||||
Pattern string `json:"pattern,omitempty"`
|
Pattern string `json:"pattern"`
|
||||||
|
|
||||||
// Is indicates the condition that must be fulfilled. Required for
|
// Is indicates the condition that must be fulfilled. Required for
|
||||||
// RoomMemberCountCondition.
|
// RoomMemberCountCondition.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue