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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user