mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -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
|
||||
// for EventMatchCondition.
|
||||
Pattern string `json:"pattern,omitempty"`
|
||||
Pattern string `json:"pattern"`
|
||||
|
||||
// Is indicates the condition that must be fulfilled. Required for
|
||||
// RoomMemberCountCondition.
|
||||
|
|
|
|||
Loading…
Reference in a new issue