Commit Graph

139 Commits

Author SHA1 Message Date
Rajeh Taher
ce325d1182 fix(master): linting warnings 2024-05-10 16:33:59 +03:00
Rajeh Taher
88cf6f5234 fix(master): linting 2024-05-10 16:24:20 +03:00
Rajeh Taher
72407e3025 linting 2024-05-06 18:19:50 +03:00
Rajeh Taher
fbbb511fb8 fix(master): error in init queries 2024-05-06 18:18:15 +03:00
azudin
b93d1f5bd7 Update chats.ts 2023-12-08 00:13:17 +08:00
azudin
9ce6e7b4e6 Update chats.ts 2023-12-08 00:01:10 +08:00
azudin
41321dc34e Update chats.ts 2023-12-07 23:55:09 +08:00
azudin
6f81ce9527 Update chats.ts 2023-12-07 23:51:22 +08:00
azudin
92dec36781 Update chats.ts 2023-12-07 23:44:51 +08:00
azudin
13fcf827f4 Update chats.ts 2023-12-07 23:41:46 +08:00
azudin
d1b57cf990 Update chats.ts 2023-12-07 23:37:06 +08:00
azudin
0898c7cd76 Update chats.ts 2023-12-07 23:10:04 +08:00
Codeboss
fe573b365c eslint final 2023-08-10 01:33:48 +03:00
Codeboss
67542c48ac eslint 2023-08-10 01:33:48 +03:00
Codeboss
fea204ac26 Simplified 2023-08-10 01:33:48 +03:00
Emanuele Ingrosso
a977d20310 Fix brackets in chats.ts 2023-08-10 01:33:48 +03:00
Emanuele Ingrosso
1d57f38323 Add "+" to the beginning of jids if not present in the onWhatsApp method
In Baileys 5.x a "+" was always added at the beginning of the jids provided to the onWhatsApp method. This was removed later in the 6.x version and has created a subtle problem.

Many phone numbers where correctly verified but for some reason french mobile number (starting with 336 or 337) always returned an undefined result (maybe there were problems with some other countries too, I couldn't verify).

Adding back the "+" (if missing) should fix the problem.
2023-08-10 01:33:48 +03:00
Samuel Scheit
d570da19a4 Merge branch 'WhiskeySockets:master' into master 2023-05-31 18:12:43 +02:00
Adrien
bb25723b6a fix: onWhatsApp query for multiple jids (#85) 2023-05-26 08:12:58 -03:00
SamuelScheit
d713e2314d remove wip two factor 2023-05-19 10:24:55 +02:00
SamuelScheit
e98e309b0d wip: two factor auth 2023-05-19 10:15:40 +02:00
Samuel Scheit
d60f84a683 Merge branch 'master' into master 2023-05-19 10:13:54 +02:00
Rafael Garcia
3ac29e131d Slint fixes applied 2023-05-15 09:41:33 -05:00
Rafael Garcia
38f285760d feat(labels): modify chat utils 2023-05-14 12:44:19 -05:00
SamuelScheit
a6640bb0f6 fix: mobile app state key + message events 2023-05-14 17:45:20 +02:00
SamuelScheit
07562c2204 feat: fetch groups if ib:dirty 2023-05-14 17:45:20 +02:00
✬Ravindu Manoj✬ ✓
13810ec7ea feat: privacy settings update functions and profile pic remove function (#5) 2023-05-06 15:10:43 -03:00
Adhiraj Singh
9d8aa67f22 feat: process pollupdate automatically 2023-03-02 22:43:31 +05:30
Adhiraj Singh
7d5aca54e9 chore: lint 2023-03-02 17:41:56 +05:30
Adhiraj Singh
5fb9f12b31 chore: use cache instead of permanent maps 2023-02-21 11:35:32 +05:30
Adhiraj Singh
572d0f1dd6 feat: implement tc token handling
TC token is required in certain cases to receive presence updates on chats
2022-12-11 15:48:26 +05:30
Adhiraj Singh
a5d263d31b fix: correctly sync app state 2022-12-09 10:15:58 +05:30
Adhiraj Singh
30e2cb5c4c refactor: impl counter based event buffer
1. counter based event buffer keeps track of the number of blocks that request event processing in buffer
2. event buffer only releases events when the last block completes (i.e. counter = 0)

this approach is far simpler than the promised based garbled crap I wrote, should also prevent the deadlock issues it introduced 🙏
2022-12-02 11:31:42 +05:30
Adhiraj Singh
190e6d6bd6 chore: ignore presence updates as well 2022-11-11 09:38:31 +05:30
Adhiraj Singh
4aadc9dc6c fix: add option for appStateMacVerification 2022-11-08 22:33:53 +05:30
Adhiraj Singh
f892a1e81f fix: duplicate mutation release on failed patch 2022-11-08 22:28:27 +05:30
Adhiraj Singh
e1fc22b3d3 feat: handle delayed myAppStateKeyId 2022-11-07 20:46:01 +05:30
Adhiraj Singh
05d1fc9b78 chore: handle irrecoverable error 2022-11-07 17:33:50 +05:30
Adhiraj Singh
2a8ce563a2 chore: remove redundant newMutations log 2022-11-06 19:51:45 +05:30
Adhiraj Singh
d0330d1863 refactor!: cleaner message history sync
This is a breaking change,
1. three events (chats.set, contacts.set, messages.set) are now just one `messaging-history.set` event
2. no need to debounce for app state sync
3. added a new "conditional" chat update to allow for correct app state sync despite not having the chat available on hand
2022-09-29 16:32:57 +05:30
Adhiraj Singh
ae3ac78dc3 feat: pass axios config to all axios instances 2022-09-19 17:46:43 +05:30
Adhiraj Singh
1b710729e5 feat: logout if myAppStateKeyId not present 2022-09-14 15:57:17 +05:30
Adhiraj Singh
c76c2afa0c feat: add "receivedInitialSync" connection update 2022-08-19 10:48:27 +05:30
Adhiraj Singh
8d6e00eab6 fix: handle when buffered tasks fail 2022-08-18 10:15:27 +05:30
Adhiraj Singh
19484e5cfc fix: fire init queries toggle 2022-08-12 09:05:58 +05:30
Adhiraj Singh
9aa9006236 chore: more logging 2022-07-24 12:06:52 +05:30
LeonardoBein
b42be6bce4 Change profile name for yourself (#1913)
* feat: change profile name

* fix: unnecessary return
2022-07-21 15:56:51 +05:30
Adhiraj Singh
40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Adhiraj Singh
189b740ea6 chore: remove "treatCiphertextMessagesAsReal" flag
!BREAKING_CHANGE

This was generally a poor design decision on my part to add something like this -- primarily because it could increment the chat unread counter a 100 times for a single message
2022-07-04 11:38:17 +05:30
Adhiraj Singh
5cc58d4aed feat: add bulk "process" capability to BaileysBufferableEventEmitter 2022-07-04 11:34:41 +05:30