Commit Graph

122 Commits

Author SHA1 Message Date
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
Pedro Dias
a2054d8efa Change profile status for yourself (#1796)
* Update README.md

* Update chats.ts

* Update chats.ts
2022-07-01 16:57:04 +05:30
Adhiraj Singh
eaf0f37d24 refactor: use event-buffer for state sync resyncs 2022-06-27 14:51:26 +05:30
Adhiraj Singh
7421f55daa feat: implement event buffer for offline msgs
!BREAKING_CHANGE

1. this allows all offline notifications to be combined into a batch -- to reduce the number of events being sent out
2. to enable the above, the "message.reaction" event has been made an array. Also removes the need for the "operation" field
3. have also now started processing all events under a single queue to prevent state sync problems
2022-06-27 13:38:29 +05:30
Adhiraj Singh
dfc030b453 fix: NaN last seen 2022-06-23 22:20:36 +05:30
Adhiraj Singh
f87f89329b perf: avoid excess memory usage when syncing state 2022-06-11 20:25:57 +05:30
Adhiraj Singh
5cb71ac862 feat: more accurately handle app state sync 2022-06-11 12:02:08 +05:30
Adhiraj Singh
cea9e9da8a fix: typeerror on patch 2022-06-08 22:56:09 +05:30
Adhiraj Singh
b7d8401f62 feat: put entire mutation in transaction 2022-06-05 14:00:09 +05:30
Adhiraj Singh
3b43153e92 fix: send unavailable if markOnlineOnConnect=false 2022-06-01 19:13:12 +05:30
Adhiraj Singh
6824a203d0 feat: correctly handle presence being offline for receipts
When sendPresenceUpdate('unavailable') is called, it should allow notifications to be received on the phone
2022-06-01 13:20:21 +05:30
Adhiraj Singh
56139b2d03 Revert "temp: do not handle dirty account_sync"
This reverts commit 772acd0946.
2022-04-24 09:48:51 +05:30
Adhiraj Singh
b3e8b38917 Revert "chore: disable init queries"
This reverts commit 6708775cb5.
2022-04-23 12:46:48 +05:30
Adhiraj Singh
44d1acb05f Merge branch 'master' into invalid-qr-patch 2022-04-13 19:04:32 +05:30
Adhiraj Singh
647138ffe5 chore: remove redundant ID flags in query 2022-04-13 13:20:56 +05:30
Adhiraj Singh
6708775cb5 chore: disable init queries 2022-04-13 12:50:56 +05:30
Adhiraj Singh
2cc5cc2dd4 Revert "feat: resync main app state on first open"
This reverts commit 060c838707.
2022-04-12 17:08:10 +05:30
Adhiraj Singh
772acd0946 temp: do not handle dirty account_sync 2022-04-12 16:31:39 +05:30