@vanzxy/baileys 1.0.12 → 1.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/lib/Utils/messages.js +7 -7
- package/package.json +1 -1
package/lib/Utils/messages.js
CHANGED
|
@@ -991,14 +991,14 @@ export const generateWAMessageContent = async (message, options) => {
|
|
|
991
991
|
const jid = options?.jid || '';
|
|
992
992
|
if (m) {
|
|
993
993
|
if (jid === 'status@broadcast') {
|
|
994
|
-
// Hapus anotasi gambar/video
|
|
995
|
-
if (m.
|
|
996
|
-
if (m.
|
|
994
|
+
// Hapus anotasi gambar/video (Properti asli TS: m.image / m.video)
|
|
995
|
+
if (m.image) m.image.annotations = undefined;
|
|
996
|
+
if (m.video) m.video.annotations = undefined;
|
|
997
997
|
|
|
998
|
-
// Atur properti audio status agar tidak crash di Android
|
|
999
|
-
if (m.
|
|
1000
|
-
m.
|
|
1001
|
-
m.
|
|
998
|
+
// Atur properti audio status agar tidak crash di Android (m.audio)
|
|
999
|
+
if (m.audio) {
|
|
1000
|
+
m.audio.ptt = true;
|
|
1001
|
+
m.audio.contextInfo = { isGroupStatus: true };
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|