*Add support for destroy
This commit is contained in:
parent
40c042bb49
commit
b42069231c
|
@ -556,8 +556,9 @@ async function createProtomuxMessage(aq: ActiveQuery) {
|
||||||
};
|
};
|
||||||
|
|
||||||
aq.setReceiveUpdate?.((data) => {
|
aq.setReceiveUpdate?.((data) => {
|
||||||
if (data.action === "send") {
|
if (["send", "destroy"].includes(data.action)) {
|
||||||
message.send(...data.args);
|
message[data.action](...data.args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
defers[data.action]?.resolve(data.args);
|
defers[data.action]?.resolve(data.args);
|
||||||
|
|
Loading…
Reference in New Issue