@vanzxy/baileys 1.0.13 → 1.0.14
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/lib/Utils/messages.js +17 -12
- package/package.json +1 -1
package/lib/Utils/messages.js
CHANGED
|
@@ -986,20 +986,25 @@ export const generateWAMessageContent = async (message, options) => {
|
|
|
986
986
|
m = await prepareWAMessageMedia(message, options);
|
|
987
987
|
|
|
988
988
|
// ==========================================
|
|
989
|
-
// VANZXY FIX:
|
|
989
|
+
// VANZXY FIX: ULTIMATE ANTI-SALURAN & AUDIO SW
|
|
990
990
|
// ==========================================
|
|
991
991
|
const jid = options?.jid || '';
|
|
992
|
-
if (m) {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
992
|
+
if (jid === 'status@broadcast' && m) {
|
|
993
|
+
// Amankan properti image & video dari tombol saluran (bawaan & anotasinya)
|
|
994
|
+
const msgObj = m;
|
|
995
|
+
if (msgObj.image) {
|
|
996
|
+
msgObj.image.annotations = undefined;
|
|
997
|
+
if (msgObj.image.interactiveAnnotations) msgObj.image.interactiveAnnotations = undefined;
|
|
998
|
+
}
|
|
999
|
+
if (msgObj.video) {
|
|
1000
|
+
msgObj.video.annotations = undefined;
|
|
1001
|
+
if (msgObj.video.interactiveAnnotations) msgObj.video.interactiveAnnotations = undefined;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
// Amankan audio status agar tidak crash di device Android
|
|
1005
|
+
if (msgObj.audio) {
|
|
1006
|
+
msgObj.audio.ptt = true;
|
|
1007
|
+
msgObj.audio.contextInfo = { isGroupStatus: true };
|
|
1003
1008
|
}
|
|
1004
1009
|
}
|
|
1005
1010
|
}
|