mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 22:35:52 +01:00
Fix parsing m.relates_to from non-standard events in push rules
This commit is contained in:
parent
c4ce54d9d6
commit
53a8608c8a
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ func (cond *PushCondition) matchRelatedEvent(room Room, evt *event.Event) bool {
|
|||
} else {
|
||||
res := gjson.GetBytes(evt.Content.VeryRaw, `m\.relates_to`)
|
||||
if res.Exists() && res.IsObject() {
|
||||
_ = json.Unmarshal([]byte(res.Str), &relatesTo)
|
||||
_ = json.Unmarshal([]byte(res.Raw), &relatesTo)
|
||||
}
|
||||
}
|
||||
if evtID := cond.getRelationEventID(relatesTo); evtID == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue