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);
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user