Commit Graph

1083 Commits

Author SHA1 Message Date
Adhiraj Singh
bb27e58c3e test: override session 2023-03-18 17:40:35 +05:30
Adhiraj Singh
5b2b037c76 chore: log full decrypt trace 2023-03-18 17:40:11 +05:30
Adhiraj Singh
fe1d0649b5 feat: add signal repository + tests 2023-03-18 12:25:47 +05:30
Adhiraj Singh
a4ecac788c feat: handle failed msgs 2023-03-09 16:12:40 +05:30
Adhiraj Singh
bd17f3742e fix: stream destroy 2023-03-03 12:41:37 +05:30
Adhiraj Singh
7e9b9b7f9a fix: stream errors not being handled 2023-03-03 12:28:16 +05:30
Adhiraj Singh
9d8aa67f22 feat: process pollupdate automatically 2023-03-02 22:43:31 +05:30
Adhiraj Singh
bda2bb4717 feat: allow meId in getKeyAuthor 2023-03-02 18:46:07 +05:30
Adhiraj Singh
d98d4156fe feat: utility functions for poll updates 2023-03-02 18:45:56 +05:30
Adhiraj Singh
cd42881201 feat: allow messageSecret as param to poll create 2023-03-02 17:42:34 +05:30
Adhiraj Singh
7d5aca54e9 chore: lint 2023-03-02 17:41:56 +05:30
Adhiraj Singh
36d6cfd5fb refactor: poll decryption 2023-03-02 17:41:43 +05:30
Adhiraj Singh
3052398cd0 Merge branch 'master' into pr/2472 2023-03-02 15:22:46 +05:30
Adhiraj Singh
06f2d354bf chore: lint files 2023-03-02 15:22:43 +05:30
Adhiraj Singh
74bd2f57a2 chore: update version 2023-02-28 11:23:27 +05:30
Adhiraj Singh
e58d6c9f25 chore: default delete keys on expire 2023-02-28 11:23:17 +05:30
Adhiraj Singh
79aa2e5176 feat: narrower definition of cachestore 2023-02-21 11:56:27 +05:30
Adhiraj Singh
30328eebe1 chore: cleaner user device cache check 2023-02-21 11:56:16 +05:30
Adhiraj Singh
34f8f60d31 chore: lint 2023-02-21 11:49:59 +05:30
Adhiraj Singh
971ce91ffd refactor: use NodeCache arg in cacheable signal store 2023-02-21 11:44:29 +05:30
Adhiraj Singh
090c916f9f feat: define DEFAULT_CACHE_TTLS 2023-02-21 11:44:11 +05:30
Adhiraj Singh
5fb9f12b31 chore: use cache instead of permanent maps 2023-02-21 11:35:32 +05:30
Adhiraj Singh
cc1fc9a53c fix: delete tmp file if failed enc 2023-02-20 21:18:31 +05:30
Adhiraj Singh
4ba828320e feat: handle maxContentLength in downloading media 2023-02-18 13:03:58 +05:30
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
41851d9e34 fix: getChatId 2023-01-18 16:23:31 +05:30
Adhiraj Singh
9591a02382 feat: getChatId for broadcasts 2023-01-18 14:33:16 +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
Alan Mosko
9c71267e22 Update messages.ts 2023-01-17 11:53:13 -03:00
Alan Mosko
0d53fbe7fa Update make-mutex.ts 2023-01-17 11:49:49 -03:00
Alan Mosko
05dd53e2ce wip 2023-01-17 11:29:10 -03:00
Alan Mosko
c398aa3ca4 Merge branch 'master' into poll 2023-01-16 11:46:20 -03:00
Adhiraj Singh
5efb0ebbea chore: remove mutex-start log 2023-01-13 10:20:28 +05:30
Alan Mosko
78f04d8714 wip 2023-01-11 23:58:29 -03:00
Adhiraj Singh
5041be776e feat: handle futureproofmessage 2022-12-23 16:58:39 +05:30
kaatt
474dc78d24 add viewOnceMessageV2 2022-12-23 16:58:39 +05:30
kaatt
fb1d39eba4 Update messages.ts
Co-Authored-By: Adhiraj Singh <adhirajsingh1001@gmail.com>
2022-12-23 16:58:39 +05:30
kaatt
39bd5b1c94 fix 2022-12-23 16:58:39 +05:30
kaatt
004bb98b59 remove console.log 2022-12-23 16:58:39 +05:30
kaatt
02e05aba42 improve normalizeMessageContent 2022-12-23 16:58:39 +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
b520d81968 test: deadlock in event buffer 2022-11-26 00:55:45 +05:30
Adhiraj Singh
a589e88136 fix: do not add to pre-buffer if waiting for end 2022-11-26 00:37:38 +05:30