Private
Public Access
1
0

Notify when attachment download succeeds, fix deadlock in attachment store

This commit is contained in:
2025-06-06 20:02:09 -07:00
parent 1d3b2f25ba
commit 4ddc0dca39
11 changed files with 126 additions and 35 deletions

View File

@@ -314,6 +314,16 @@ impl Daemon {
reply.send(()).unwrap();
}
Event::AttachmentDownloaded(attachment_id) => {
log::info!(target: target::ATTACHMENTS, "Daemon: attachment downloaded: {}, sending signal", attachment_id);
// Send signal to the client that the attachment has been downloaded.
self.signal_sender
.send(Signal::AttachmentDownloaded(attachment_id))
.await
.unwrap();
}
}
}