mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
hicli/sync: fix handling redactions to unknown events
This commit is contained in:
parent
974fab0e0f
commit
226144ca9f
1 changed files with 3 additions and 0 deletions
|
|
@ -404,6 +404,9 @@ func (h *HiClient) processStateAndTimeline(ctx context.Context, room *database.R
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to get redaction target: %w", err)
|
||||
}
|
||||
if dbEvt == nil {
|
||||
return nil
|
||||
}
|
||||
if dbEvt.RelationType == event.RelReplace || dbEvt.RelationType == event.RelAnnotation {
|
||||
_, err = addOldEvent(0, dbEvt.RelatesTo)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue