From 57743f33772b92f7cf78fc8ea1d148dc6e89ec6b Mon Sep 17 00:00:00 2001 From: BlowaterNostr Date: Tue, 14 May 2024 14:54:40 +0100 Subject: [PATCH] do not block the update loop --- app/UI/app_update.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/UI/app_update.tsx b/app/UI/app_update.tsx index 8ba456c..c2780aa 100644 --- a/app/UI/app_update.tsx +++ b/app/UI/app_update.tsx @@ -330,11 +330,11 @@ const handle_update_event = async (chan: PutChannel, 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