From acade9801f33a40c6a328ca16e211e1736316ec9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 22:55:05 -0400 Subject: [PATCH] Revert "*Add support for destroy" This reverts commit b42069231ce07f509fa261840180292e0f2b49be. --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5e9264d..6cd7912 100644 --- a/src/index.ts +++ b/src/index.ts @@ -556,9 +556,8 @@ async function createProtomuxMessage(aq: ActiveQuery) { }; aq.setReceiveUpdate?.((data) => { - if (["send", "destroy"].includes(data.action)) { - message[data.action](...data.args); - return; + if (data.action === "send") { + message.send(...data.args); } defers[data.action]?.resolve(data.args);