Commit Graph

71 Commits

Author SHA1 Message Date
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
Adhiraj Singh
c803e22e8a feat: functional legacy socket 2021-12-17 20:58:33 +05:30
Adhiraj Singh
be0e2210d9 Merge branch 'multi-device' into multi-device-legacy 2021-12-17 19:28:00 +05:30
Adhiraj Singh
19a9980492 feat: add legacy connection 2021-12-17 19:27:04 +05:30
Adhiraj Singh
ed30e368ad fix: tsc error 2021-12-17 11:16:49 +05:30
LyFE
ca12da6269 fix updateBlockStatus,fetchPrivacySettings (#1034)
* fix updateBlockStatus

* fix fetchPrivacySettings

* Update chats.ts
2021-12-16 23:49:48 +05:30
Adhiraj Singh
9474017930 feat: async import got wherever required 2021-12-16 00:38:53 +05:30
Adhiraj Singh
d15dd6e1d2 feat: add "direct_path" to media messages 2021-12-13 17:31:20 +05:30
Adhiraj Singh
f284217d35 feat: implement transactions on auth state 2021-12-11 18:28:07 +05:30
Adhiraj Singh
2b8256d56b feat: cleaner auth state management + store SK keys
!BREAKING_CHANGE
2021-12-11 17:54:38 +05:30
Adhiraj Singh
792c4bf0a4 feat: add custom host names 2021-12-11 11:32:12 +05:30
LightningNeko
e20e479d74 fix waiting for this message (#966) 2021-12-05 01:47:14 +05:30