@queenanya/baileys 7.3.6 → 7.4.0
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/Socket/chats.js +5 -3
- package/package.json +1 -1
package/lib/Socket/chats.js
CHANGED
|
@@ -693,7 +693,7 @@ const makeChatsSocket = (config) => {
|
|
|
693
693
|
};
|
|
694
694
|
/** sending non-abt props may fix QR scan fail if server expects */
|
|
695
695
|
const fetchProps = async () => {
|
|
696
|
-
var _a, _b;
|
|
696
|
+
var _a, _b, _c;
|
|
697
697
|
const resultNode = await query({
|
|
698
698
|
tag: 'iq',
|
|
699
699
|
attrs: {
|
|
@@ -711,8 +711,10 @@ const makeChatsSocket = (config) => {
|
|
|
711
711
|
const propsNode = (0, WABinary_1.getBinaryNodeChild)(resultNode, 'props');
|
|
712
712
|
let props = {};
|
|
713
713
|
if (propsNode) {
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
if ((_b = propsNode.attrs) === null || _b === void 0 ? void 0 : _b.hash) { // on some clients, the hash is returning as undefined
|
|
715
|
+
authState.creds.lastPropHash = (_c = propsNode === null || propsNode === void 0 ? void 0 : propsNode.attrs) === null || _c === void 0 ? void 0 : _c.hash;
|
|
716
|
+
ev.emit('creds.update', authState.creds);
|
|
717
|
+
}
|
|
716
718
|
props = (0, WABinary_1.reduceBinaryNodeToDictionary)(propsNode, 'prop');
|
|
717
719
|
}
|
|
718
720
|
logger.debug('fetched props');
|