do not block the update loop

This commit is contained in:
BlowaterNostr 2024-05-14 14:54:40 +01:00
parent 049b2d56c8
commit 57743f3377

View File

@ -330,11 +330,11 @@ const handle_update_event = async (chan: PutChannel<true>, args: {
app.toastInputChan.put(() => deletionEvent.message);
continue;
}
const err = await current_relay.sendEvent(deletionEvent);
if (err instanceof Error) {
app.toastInputChan.put(() => err.message);
continue;
}
current_relay.sendEvent(deletionEvent).then((res) => {
if (res instanceof Error) {
app.toastInputChan.put(() => res.message);
}
});
} //
//
// DM