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:
webzwo0i 2022-11-27 16:21:07 +01:00
parent 31f56ac3f4
commit 8a852ba054

View file

@ -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.