@pney/whatsapp-web 1.34.2 → 1.34.4-node20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pney/whatsapp-web",
3
- "version": "1.34.2",
3
+ "version": "1.34.4-node20",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "mime": "^3.0.0",
35
35
  "node-fetch": "^2.6.9",
36
36
  "node-webpmux": "3.1.7",
37
- "puppeteer": "^18.2.1"
37
+ "puppeteer": "24.31.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node-fetch": "^2.5.12",
package/src/Client.js CHANGED
@@ -729,7 +729,7 @@ class Client extends EventEmitter {
729
729
  window.Store.Msg.on('change:body change:caption', (msg, newBody, prevBody) => { window.onEditMessageEvent(window.WWebJS.getMessageModel(msg), newBody, prevBody); });
730
730
  window.Store.AppState.on('change:state', (_AppState, state) => { window.onAppStateChangedEvent(state); });
731
731
  window.Store.Conn.on('change:battery', (state) => { window.onBatteryStateChangedEvent(state); });
732
- window.Store.Call.on('add', (call) => { window.onIncomingCall(call); });
732
+ // window.Store.Call.on('add', (call) => { window.onIncomingCall(call); });
733
733
  window.Store.Chat.on('remove', async (chat) => { window.onRemoveChatEvent(await window.WWebJS.getChatModel(chat)); });
734
734
  window.Store.Chat.on('change:archive', async (chat, currState, prevState) => { window.onArchiveChatEvent(await window.WWebJS.getChatModel(chat), currState, prevState); });
735
735
  window.Store.Msg.on('add', (msg) => {
@@ -13,7 +13,10 @@ exports.LoadUtils = () => {
13
13
  const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
14
14
  if (chat) {
15
15
  window.Store.WAWebStreamModel.Stream.markAvailable();
16
- await window.Store.SendSeen.sendSeen(chat);
16
+ await window.Store.SendSeen.sendSeen({
17
+ chat: chat,
18
+ threadId: undefined
19
+ });
17
20
  window.Store.WAWebStreamModel.Stream.markUnavailable();
18
21
  return true;
19
22
  }