Don't leak timeline after leaving room

This commit is contained in:
Neil Alexander 2021-01-20 13:25:16 +00:00
parent 33f8d0e278
commit e3068f4c20
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
7 changed files with 175 additions and 30 deletions

View file

@ -63,6 +63,7 @@ type Events interface {
UpdateEventJSON(ctx context.Context, event *gomatrixserverlib.HeaderedEvent) error
// DeleteEventsForRoom removes all event information for a room. This should only be done when removing the room entirely.
DeleteEventsForRoom(ctx context.Context, txn *sql.Tx, roomID string) (err error)
SelectPositionInStream(ctx context.Context, txn *sql.Tx, eventID string) (pos types.StreamPosition, err error)
}
// Topology keeps track of the depths and stream positions for all events.