mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 07:33:22 +00:00
do not block the update loop
This commit is contained in:
parent
049b2d56c8
commit
57743f3377
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user