@gamastudio/sendwave-provider 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.json +1 -1
- package/build/utils/parserMsg.js +1 -1
- package/package.json +1 -1
package/build/package.json
CHANGED
package/build/utils/parserMsg.js
CHANGED
|
@@ -13,7 +13,7 @@ function parseIncomingMsg(payload) {
|
|
|
13
13
|
}
|
|
14
14
|
// if (msg.key.fromMe) return null
|
|
15
15
|
const fromMe = msg.key.fromMe;
|
|
16
|
-
const from = (_a = msg.key) === null || _a === void 0 ? void 0 : _a.remoteJid.split("@")[0];
|
|
16
|
+
const from = (((_a = msg.key) === null || _a === void 0 ? void 0 : _a.remoteJid) || "").split("@")[0].split(":")[0];
|
|
17
17
|
const to = payload.instance || "";
|
|
18
18
|
const name = msg.pushName;
|
|
19
19
|
const messageContent = msg.message || {};
|
package/package.json
CHANGED