Commit Graph

389 Commits

Author SHA1 Message Date
Adhiraj Singh
ca24608dc8 chore: pass axios options to downloading remote media 2023-02-18 13:03:47 +05:30
Adhiraj Singh
f013b61e35 chore: update axios 2023-02-18 12:34:04 +05:30
Adhiraj Singh
b2c1cfbf9c fix: timeout send call 2023-02-01 14:33:14 +05:30
Adhiraj Singh
4f27a2b3f4 feat: add "decodeMessageNode" util 2023-01-18 13:43:13 +05:30
Adhiraj Singh
c24ffc1bed feat: better mapping for WS errors 2023-01-17 22:01:51 +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
bed4f7f524 chore: add GetCatalogOptions type
!BREAKING_CHANGE
2022-12-08 13:32:10 +05:30
Adhiraj Singh
c96a7652d9 feat: add nextPageCursor 2022-12-08 13:30:31 +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
b141ac2c00 chore: only buffer if logged in 2022-11-25 10:17:47 +05:30
Leonardo Bein
704aa1e434 feat: Add notification group: change inviteCode 2022-11-22 12:02:31 +05:30
Adhiraj Singh
b33c753928 feat: add url options to link preview gen 2022-11-17 11:08:01 +05:30
Adhiraj Singh
00d8cf4270 chore: mutex upsertMessage call from sendMessage 2022-11-14 16:47:13 +05:30
Adhiraj Singh
01a641d3bd fix: decrypt race condition 2022-11-13 11:08:32 +05:30
Adhiraj Singh
b2aa51a13d feat: add custom patchMsg function + remove patch for btns 2022-11-12 19:31:11 +05:30
Adhiraj Singh
190e6d6bd6 chore: ignore presence updates as well 2022-11-11 09:38:31 +05:30
Adhiraj Singh
a58b73fba5 feat: allow ignoring jids 2022-11-11 09:31:49 +05:30
Adhiraj Singh
10d61d02cf chore: expose uploadPreKeysToServerIfRequired 2022-11-11 00:42:57 +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
9e3c2082de fix: deadlock on processNodeWithBuffer 2022-11-07 17:21:32 +05:30
Adhiraj Singh
2a8ce563a2 chore: remove redundant newMutations log 2022-11-06 19:51:45 +05:30
Adhiraj Singh
9c28dde04d chore: call processInBuffer for all msg handling 2022-10-18 16:57:40 +05:30
Adhiraj Singh
3977444bc5 fix: handle errors in validateconnection 2022-10-16 15:25:10 +05:30
Adhiraj Singh
a85698b201 feat: log updated disappearing mode 2022-10-13 17:36:46 +05:30
Adhiraj Singh
6663357a37 feat: handle default disappearing mode change notifications 2022-10-12 19:11:14 +05:30
Adhiraj Singh
6c3958bb16 fix: desc for groups 2022-10-09 12:21:44 +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
b329c73b20 feat: handle picture change events 2022-09-27 11:28:41 +05:30
Adhiraj Singh
da359aaee2 refactor: handle group stuff in a separate function 2022-09-27 10:51:38 +05:30
ponei
58b5df4d4b feat: add notification node type picture 2022-09-26 21:41:09 +05:30
Adhiraj Singh
f8fd5ec008 feat: copy in axios options headers to WebSocket 2022-09-20 11:09:34 +05:30
Adhiraj Singh
ae3ac78dc3 feat: pass axios config to all axios instances 2022-09-19 17:46:43 +05:30
Adhiraj Singh
f0bdb12e56 feat: generate high quality thumbs on link preview 2022-09-15 18:40:22 +05:30
Adhiraj Singh
952813d57a lint: resolve lint problems 2022-09-15 07:10:16 +05:30
Adhiraj Singh
1b710729e5 feat: logout if myAppStateKeyId not present 2022-09-14 15:57:17 +05:30
Rahul Kasireddy
ea841426c0 Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
d05f40b348 Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
c113e683e7 Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
ba3db3ee1a Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
3164a8c597 Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
25950f19cf Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
570f5e5b86 Update messages-recv.ts 2022-09-13 14:25:23 +05:30
Rahul Kasireddy
749e293c6c added rejectCall function 2022-09-13 14:25:23 +05:30
Adhiraj Singh
64f3f08adb feat: log thumb gen errors 2022-09-12 12:15:34 +05:30
Adhiraj Singh
c76c2afa0c feat: add "receivedInitialSync" connection update 2022-08-19 10:48:27 +05:30
Adhiraj Singh
ebd92e0337 fix: correctly fire product edit 2022-08-18 15:51:49 +05:30