From 63f239f3364eccea0a6efa18f62bbdc530af82e0 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Wed, 5 Jul 2023 11:02:12 +0200 Subject: [PATCH] Add comment for MaybeRedactEvent --- roomserver/storage/interface.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go index 93a491ecc..83b6c46da 100644 --- a/roomserver/storage/interface.go +++ b/roomserver/storage/interface.go @@ -190,6 +190,8 @@ type Database interface { GetRoomVersion(ctx context.Context, roomID string) (gomatrixserverlib.RoomVersion, error) GetOrCreateEventTypeNID(ctx context.Context, eventType string) (eventTypeNID types.EventTypeNID, err error) GetOrCreateEventStateKeyNID(ctx context.Context, eventStateKey *string) (types.EventStateKeyNID, error) + // MaybeRedactEvent returns the redaction event, the redacted event and the event before redaction if this call resulted in a redaction, else an error + // (nil if there was nothing to do) MaybeRedactEvent(ctx context.Context, roomInfo *types.RoomInfo, eventNID types.EventNID, event gomatrixserverlib.PDU, plResolver state.PowerLevelResolver, querier api.QuerySenderIDAPI) (gomatrixserverlib.PDU, gomatrixserverlib.PDU, gomatrixserverlib.PDU, error) }