Commit Graph

229 Commits

Author SHA1 Message Date
Adhiraj Singh
564c9f2e86 chore: remove redundant headers 2022-04-13 00:10:24 +05:30
Adhiraj Singh
02265fd7f9 refactor: upload more pre-keys + use pure function 2022-04-13 00:02:10 +05:30
Adhiraj Singh
2c87bfae2c chore: remove useless log 2022-04-12 19:21:56 +05:30
Adhiraj Singh
37178547ba fix: better registration ID 2022-04-12 19:02:30 +05:30
Adhiraj Singh
75c637cf6c feat: remove need for "serverHasPreKeys" 2022-04-12 18:47:18 +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
5655ccaca7 fix: wait for pre-key upload 2022-04-12 17:07:04 +05:30
Adhiraj Singh
f4da9af5d3 chore: use only numbers in message tag 2022-04-12 17:04:24 +05:30
Adhiraj Singh
d43e5e0a01 Merge branch 'master' into invalid-qr-patch 2022-04-12 16:51:28 +05:30
Adhiraj Singh
98c9af4acf feat: log fromMe messages in trace mode 2022-04-12 16:51:15 +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
0d94315776 feat: handle unarchiveChats setting 2022-04-07 11:29:57 +05:30
Adhiraj Singh
feb32465ca docs: logging + more docs 2022-04-06 20:41:07 +05:30
Adhiraj Singh
5aa64f2c39 feat: add readMessages function 2022-04-06 09:30:32 +05:30
Adhiraj Singh
59f834ca39 fix: handle receipts more accurately
1. only send timestamp with read receipts
2. use unix timestamp in seconds instead of millis
3. use "sender" receipts for own messages
2022-04-03 11:27:13 +05:30
Adhiraj Singh
64bab02b7c fix: patch proto sync receipts 2022-04-03 00:15:06 +05:30
Adhiraj Singh
f9ffb0f4c8 refactor: send history sync later 2022-04-03 00:14:34 +05:30
Adhiraj Singh
334f85f8c5 feat: handle "peer_msg" receipts 2022-04-02 15:45:09 +05:30
Adhiraj Singh
8663598292 chore: log proto objects to prevent buffer arrays being printed 2022-04-02 15:44:51 +05:30
Adhiraj Singh
8addc714c7 feat: add more receipt types 2022-04-02 15:44:22 +05:30
Adhiraj Singh
355b0664df feat: handle encrypt notification 2022-04-02 13:37:10 +05:30
Adhiraj Singh
0995b1231a fix: use string values in business catalog 2022-04-01 21:17:46 +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
ced2f5d5ab feat: debounced app state resync 2022-03-29 19:59:19 +05:30
Adhiraj Singh
cc7c895320 fix: export correct processMessage function 2022-03-29 18:25:04 +05:30
Adhiraj Singh
ec6e904db4 refactor: process sync actions out of socket 2022-03-29 14:16:51 +05:30
Adhiraj Singh
ab9b232838 refactor: move processMessage out of socket 2022-03-29 14:04:14 +05:30
Adhiraj Singh
89e35ec18a feat: use transaction when uploading prekeys 2022-03-29 13:41:41 +05:30
Adhiraj Singh
bb9f233de4 chore: move ack of notification before processing 2022-03-29 13:41:25 +05:30
Jefersson Lemes
3953e6df1f fix recording audio showing how typing (#1416) 2022-03-27 20:36:57 +05:30
Alon Schwartzblat
eb8f8e0d72 Add join group by groupInviteMessage (#1355)
* Add join group by groupInviteMessage

* Add join group by groupInviteMessage

* Fix typo
2022-03-25 16:18:00 +05:30
Adhiraj Singh
1635b1e756 refactor: cleanup MD socket initial connect code + log more 2022-03-24 20:33:55 +05:30
Adhiraj Singh
f82f5470cd feat: reset ping timeout on any frame recv
Credit to @HUGEIT for suggesting this
2022-03-24 13:25:23 +05:30
Adhiraj Singh
6637e32be9 fix: fire presence when name is recv 2022-03-24 10:18:28 +05:30
Adhiraj Singh
4bfb0e1343 chore: log when encountered unexpected connection close 2022-03-24 10:14:23 +05:30
Adhiraj Singh
ba3cbd476e fix: correctly clear qrTimer 2022-03-24 10:13:57 +05:30
Adhiraj Singh
8d7fde1bf4 feat: add delay between retry requests 2022-03-23 12:40:01 +05:30
Adhiraj Singh
b933970d51 fix: do not fire chat update for reactions 2022-03-23 12:39:11 +05:30
Ezequiel José Oliveira
f773a32da8 fix processMessage unexpected error (#1401) 2022-03-23 08:11:21 +05:30
Adhiraj Singh
9fee7faaf6 feat: add message events for reactions 2022-03-23 00:40:46 +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
Adhiraj Singh
5e80f5ace3 chore: ack history before processing 2022-03-21 23:29:56 +05:30
Adhiraj Singh
e731de5deb feat: add state sync keys in transaction 2022-03-21 23:29:43 +05:30
Adhiraj Singh
4962070c29 fix: possible typeerror 2022-03-21 18:57:29 +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
93c8db319e feat: implement "treatCiphertextMessagesAsReal" flag 2022-03-21 14:15:22 +05:30
Mohammad Maaz
b5470e1b00 ephemeral tag is invalid. Valid tag is expiration (#1388) 2022-03-21 08:14:27 +05:30
Adhiraj Singh
54d31edc1d fix: do not fire presence update without name 2022-03-19 08:26:57 +05:30