@periskope/baileys 6.7.18-16 → 6.7.18-17

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.
@@ -75,6 +75,9 @@ class SenderKeyState {
75
75
  return this.senderKeyStateStructure.senderMessageKeys.some(key => key.iteration === iteration);
76
76
  }
77
77
  addSenderMessageKey(senderMessageKey) {
78
+ if (!this.senderKeyStateStructure.senderMessageKeys) {
79
+ this.senderKeyStateStructure.senderMessageKeys = [];
80
+ }
78
81
  this.senderKeyStateStructure.senderMessageKeys.push({
79
82
  iteration: senderMessageKey.getIteration(),
80
83
  seed: senderMessageKey.getSeed()
@@ -559,7 +559,7 @@ const makeMessagesRecvSocket = (config) => {
559
559
  if (typeof status !== 'undefined' &&
560
560
  // basically, we only want to know when a message from us has been delivered to/read by the other person
561
561
  // or another device of ours has read some messages
562
- (status >= WAProto_1.proto.WebMessageInfo.Status.SERVER_ACK || !isNodeFromMe)) {
562
+ (status >= WAProto_1.proto.WebMessageInfo.Status.SERVER_ACK)) {
563
563
  if ((0, WABinary_1.isJidGroup)(remoteJid) || (0, WABinary_1.isJidStatusBroadcast)(remoteJid)) {
564
564
  const updateKey = status === WAProto_1.proto.WebMessageInfo.Status.DELIVERY_ACK ? 'receiptTimestamp' : 'readTimestamp';
565
565
  if (attrs.participant) {
@@ -77,7 +77,6 @@ exports.hkdfInfoKey = hkdfInfoKey;
77
77
  //!BK: Added a new function to get the URL info
78
78
  async function processImage(imageUrl) {
79
79
  try {
80
- console.log('processing image', imageUrl);
81
80
  // Fetch the image
82
81
  const response = await fetch(imageUrl);
83
82
  let imageBuffer = Buffer.from(await response.arrayBuffer());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/baileys",
3
- "version": "6.7.18-16",
3
+ "version": "6.7.18-17",
4
4
  "description": "WhatsApp API",
5
5
  "keywords": [
6
6
  "periskope",