@open-wa/wa-automate 4.37.0 → 4.37.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.js +2 -2
- package/package.json +1 -1
package/dist/api/Client.js
CHANGED
@@ -689,8 +689,8 @@ class Client {
|
|
689
689
|
onMessage(fn, queueOptions) {
|
690
690
|
var _a;
|
691
691
|
return __awaiter(this, void 0, void 0, function* () {
|
692
|
-
|
693
|
-
return this.registerListener(events_2.SimpleListener.Message,
|
692
|
+
const _fn = (message) => __awaiter(this, void 0, void 0, function* () { return fn(yield this.preprocessMessage(message)); });
|
693
|
+
return this.registerListener(events_2.SimpleListener.Message, _fn, ((_a = this === null || this === void 0 ? void 0 : this._createConfig) === null || _a === void 0 ? void 0 : _a.pQueueDefault) || queueOptions);
|
694
694
|
});
|
695
695
|
}
|
696
696
|
/**
|
package/package.json
CHANGED