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
Adhiraj Singh
f1b64c3c35
feat: send presence update when name changed
2022-04-08 23:29:48 +05:30
Adhiraj Singh
060c838707
feat: resync main app state on first open
2022-04-08 23:29:36 +05:30
Adhiraj Singh
feb32465ca
docs: logging + more docs
2022-04-06 20:41:07 +05:30
Jefersson Lemes
ac9625adbb
Fix status 'recording' on sendPresenceUpdate ( #1437 )
...
* Fix status 'recording' on sendPresenceUpdate
* lint chat.ts
2022-03-30 23:31:01 +05:30
Adhiraj Singh
ec6e904db4
refactor: process sync actions out of socket
2022-03-29 14:16:51 +05:30
Jefersson Lemes
3953e6df1f
fix recording audio showing how typing ( #1416 )
2022-03-27 20:36:57 +05:30
Adhiraj Singh
3cefad2c8e
fix: fire init queries in parallel
...
possible ghost session patch. cc @HUGEIT
2022-03-22 22:41:23 +05:30
morrakan
9b8b3c3b70
fix presence.lastSeen is always undefined ( https://github.com/adiwajshing/Baileys/issues/1377 ) ( #1389 )
...
Co-authored-by: morok <morok@nanofo.com >
2022-03-21 18:45:04 +05:30
Adhiraj Singh
54d31edc1d
fix: do not fire presence update without name
2022-03-19 08:26:57 +05:30
Adhiraj Singh
dc5015996f
fix: send init queries in queue
2022-03-19 08:25:49 +05:30
Adhiraj Singh
13b0da0954
fix: catch unexpected errors on MD
2022-03-15 12:34:52 +05:30
Adhiraj Singh
2b10b7b18f
chore: minor code cleanup
2022-03-14 19:38:01 +05:30
Adhiraj Singh
ad9314c1f2
fix: only update last account sync when required
2022-03-07 19:21:04 +05:30
Adhiraj Singh
94df5826f8
fix: account for no initial state while patching
2022-03-07 18:50:37 +05:30
Adhiraj Singh
de7d1002a9
lint: stricter linting rules
2022-03-01 16:32:14 +05:30
Adhiraj Singh
1f2a6641f3
feat: mutex processing in a chat to preserve order of events
2022-01-22 14:07:06 +05:30
Adhiraj Singh
8f11f0be76
chore: add linting
2022-01-19 15:54:02 +05:30
Adhiraj Singh
db6a02c4a5
chore: remove redundant log
2022-01-07 21:04:54 +05:30
Adhiraj Singh
d15bde5d17
refactor: app state handling
...
1. fixes snapshot patches not being included
2. fixes all mutations being passed when syncing from scratch
3. simpler chat mutation model
4. do not retry if key is not found
2022-01-07 14:29:52 +05:30