@langitdeveloper/baileys 2.1.3 → 2.1.4
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/Signal/libsignal.js +0 -3
- package/package.json +1 -1
package/lib/Signal/libsignal.js
CHANGED
|
@@ -276,9 +276,6 @@ const jidToSignalProtocolAddress = (jid) => {
|
|
|
276
276
|
}
|
|
277
277
|
const signalUser = domainType !== WABinary_1.WAJIDDomains.WHATSAPP ? `${user}_${domainType}` : user;
|
|
278
278
|
const finalDevice = device || 0;
|
|
279
|
-
if (device === 99 && decoded.server !== 'hosted' && decoded.server !== 'hosted.lid') {
|
|
280
|
-
throw new Error('Unexpected non-hosted device JID with device 99. This ID seems invalid. ID:' + jid);
|
|
281
|
-
}
|
|
282
279
|
return new libsignal.ProtocolAddress(signalUser, finalDevice);
|
|
283
280
|
};
|
|
284
281
|
const jidToSignalSenderKeyName = (group, user) => {
|