Commit Graph

82 Commits

Author SHA1 Message Date
Adhiraj Singh
090c916f9f feat: define DEFAULT_CACHE_TTLS 2023-02-21 11:44:11 +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
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
b2aa51a13d feat: add custom patchMsg function + remove patch for btns 2022-11-12 19:31:11 +05:30
Adhiraj Singh
f0bdb12e56 feat: generate high quality thumbs on link preview 2022-09-15 18:40:22 +05:30
Adhiraj Singh
64f3f08adb feat: log thumb gen errors 2022-09-12 12:15:34 +05:30
Adhiraj Singh
c5917364ba chore: add stronger lint rules 2022-08-18 10:37:40 +05:30
Adhiraj Singh
31b54ec7c3 fix: include accountSignatureKey in retry requests 2022-08-07 18:10:28 +05:30
Adhiraj Singh
bed9e384ba feat: added played receipt 2022-08-04 11:55:35 +05:30
Adhiraj Singh
9f3b00d58d fix: temp patch for button/list messages 2022-08-04 11:13:00 +05:30
Rajeh Taher
99517d046f eslint 2022-08-04 08:04:12 +05:30
Rajeh Taher
8805d75afc using isJidGroup 2022-08-04 08:04:12 +05:30
Rajeh Taher
a6a2cd9def estlint :D 2022-08-04 08:04:12 +05:30
Rajeh Taher
abd0711bc7 fixes 2022-08-04 08:04:12 +05:30
Rajeh Taher
fdb1b9e89b Implementing Delete messages for everyone (group) 2022-08-04 08:04:12 +05:30
Adhiraj Singh
2549d10be9 feat: update proto
The new proto extract has a bunch of breaking changes, so if you were using the raw proto in your code somewhere -- then you may have to update your code to make it work with the new proto

!BREAKING_CHANGE
2022-08-01 10:43:04 +05:30
Adhiraj Singh
729f19ef3e fix: participant count 2022-07-13 11:35:34 +05:30
Adhiraj Singh
4c60e311f4 feat: correctly send retry messages w count 2022-07-13 10:34:13 +05:30
Adhiraj Singh
40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Adhiraj Singh
de95694266 fix: use correct status code for throwing media error 2022-07-04 11:24:34 +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
92960bbf04 fix: set default status code 2022-06-24 12:14:10 +05:30
Adhiraj Singh
33fffc4aad feat: implement privacy token fetch 2022-06-22 14:51:00 +05:30
Adhiraj Singh
721d0f32d6 feat: handle bad message acks + send retry to all correctly 2022-06-22 14:50:48 +05:30
Adhiraj Singh
d61d333c5b chore: nicer retry errors 2022-06-22 12:07:09 +05:30
Adhiraj Singh
4ad0683e0c chore: remove redundant pre-fetch 2022-06-17 13:37:49 +05:30
Adhiraj Singh
7863c0e4c2 perf: nicer "shouldIncludeDeviceIdentity" flag computation 2022-06-17 13:16:41 +05:30
Adhiraj Singh
399b4d3cb8 feat: add "device_fanout" flag for retry receipt 2022-06-17 13:16:22 +05:30
Adhiraj Singh
1dc5d4eae0 fix: do not add "reason: identity" for details fetch 2022-06-16 14:56:06 +05:30
Adhiraj Singh
e9f494ec5d feat: more efficient message send 2022-06-16 14:53:23 +05:30
Adhiraj Singh
442489faae fix: correctly respond to retry requests 2022-06-15 15:05:43 +05:30
Adhiraj Singh
82e2ec79d3 chore: add media update logging 2022-06-01 15:35:36 +05:30
Adhiraj Singh
f62898dee7 fix: emit messages.update on successful reupload 2022-06-01 13:18:37 +05:30
Adhiraj Singh
06ce5f9be0 feat: add media retry for MD 2022-06-01 13:04:45 +05:30
Adhiraj Singh
60aafded3e chore: remove redundant comment 2022-05-28 00:22:34 +05:30
Adhiraj Singh
e131b7c4d3 feat: pass cachedGroupMetadata from sendMessage 2022-05-23 11:32:51 +05:30
Adhiraj Singh
68a6f34cde feat: add timeoutMs to link preview 2022-04-22 20:05:17 +05:30
Adhiraj Singh
f421f5d387 feat: customize link preview image width 2022-04-19 19:12:24 +05:30
Adhiraj Singh
872536fa5b feat: link previews on MD 2022-04-19 19:00:32 +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
8addc714c7 feat: add more receipt types 2022-04-02 15:44:22 +05:30
Adhiraj Singh
de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +05:30
Adhiraj Singh
8f11f0be76 chore: add linting 2022-01-19 15:54:02 +05:30
Adhiraj Singh
f7f86e69d6 chore: update log 2022-01-16 16:03:22 +05:30
Adhiraj Singh
6a2cb5a413 refactor: message decoding
1. removes redundant receipt (was exactly the same as delivery receipt without the timestamp)
2. decodeWAMessage now returns a proper message struct
3. each message stanza results in exactly one message decoded
2022-01-07 00:04:17 +05:30
Adhiraj Singh
9d7aec11da feat: add more logging to media 2021-12-19 14:35:51 +05:30