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); app.toastInputChan.put(() => deletionEvent.message);
continue; continue;
} }
const err = await current_relay.sendEvent(deletionEvent); current_relay.sendEvent(deletionEvent).then((res) => {
if (err instanceof Error) { if (res instanceof Error) {
app.toastInputChan.put(() => err.message); app.toastInputChan.put(() => res.message);
continue;
} }
});
} // } //
// //
// DM // DM