1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

msghub: Clear deleted messages instead of unlinking (#348)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2023-02-17 15:06:43 -08:00
committed by GitHub
parent 82ddf2141c
commit 7044567d64
2 changed files with 56 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ func (hub *Hub) Delete(mailbox string, id string) {
for {
if next, ok := p.Next().Value.(event.MessageMetadata); ok {
if mailbox == next.Mailbox && id == next.ID {
p.Unlink(1) // Remove next node.
p.Next().Value = nil
break
}
}