fix: send OK message for ephemeral events

4b9f13d983/01.md (L153)
Signed-off-by: Greg Heartsfield <scsibug@imap.cc>
This commit is contained in:
Yuki Kishimoto 2023-10-31 09:49:10 +01:00 committed by Greg Heartsfield
parent 24b1705a08
commit a7b169c0d3

View File

@ -401,6 +401,9 @@ pub async fn db_writer(
start.elapsed() start.elapsed()
); );
event_write = true; event_write = true;
// send OK message
notice_tx.try_send(Notice::saved(event.id)).ok();
} else { } else {
match repo.write_event(&event).await { match repo.write_event(&event).await {
Ok(updated) => { Ok(updated) => {