mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Fix syncAPI redactions (#3118)
Previously we were setting `redacted_because` to the PDU event, but as per the spec it should really be a client event. This fixes it.
This commit is contained in:
parent
45082d4dce
commit
a5ea928d0f
5 changed files with 67 additions and 6 deletions
|
@ -151,7 +151,7 @@ func (s *OutputRoomEventConsumer) onMessage(ctx context.Context, msgs []*nats.Ms
|
|||
func (s *OutputRoomEventConsumer) onRedactEvent(
|
||||
ctx context.Context, msg api.OutputRedactedEvent,
|
||||
) error {
|
||||
err := s.db.RedactEvent(ctx, msg.RedactedEventID, msg.RedactedBecause)
|
||||
err := s.db.RedactEvent(ctx, msg.RedactedEventID, msg.RedactedBecause, s.rsAPI)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("RedactEvent error'd")
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue