Commit Graph

51 Commits

Author SHA1 Message Date
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
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
721d0f32d6 feat: handle bad message acks + send retry to all correctly 2022-06-22 14:50:48 +05:30
4l3dx
084c39ca73 fix: add missing isAnimated flag (#1767) 2022-06-22 10:44:16 +05:30
Adhiraj Singh
32fadda86a feat: add button reply 2022-06-13 16:22:28 +05:30
Adhiraj Singh
79518787b6 feat: prevent urlInfo gen 2022-06-10 09:52:36 +05:30
Adhiraj Singh
5305730d82 feat: track history being stored
This is done because sometimes we receive history after the first connect too, and to ensure the "isLatest" flag is accurate -- we ensure no history was received previously
2022-06-07 21:18:51 +05:30
Adhiraj Singh
6824a203d0 feat: correctly handle presence being offline for receipts
When sendPresenceUpdate('unavailable') is called, it should allow notifications to be received on the phone
2022-06-01 13:20:21 +05:30
Adhiraj Singh
e131b7c4d3 feat: pass cachedGroupMetadata from sendMessage 2022-05-23 11:32:51 +05:30
Adhiraj Singh
7e290b4dfb chore: reduce data required for cachedGroupMetadata 2022-05-23 11:20:01 +05:30
Adhiraj Singh
a98484c38b refactor: split "downloadContentFromMessage" to "downloadEncryptedContent"" 2022-04-21 00:52:17 +05:30
Adhiraj Singh
5655961d12 feat: allow passing of url info in text message 2022-04-20 20:30:11 +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
8addc714c7 feat: add more receipt types 2022-04-02 15:44:22 +05:30
Ami
3a52f06c0f Added ReactionMessage for React User Message with Emoji (#1382)
* Add react type

* Add ReactionMessage

* Add reactionMessage example...

* Lint fix...
2022-03-23 00:35:13 +05:30
Adhiraj Singh
de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +05:30
Adhiraj Singh
92587bd46a refactor: use the proto UserReceipt instead of custom MessageInfo 2022-01-22 00:27:00 +05:30
Adhiraj Singh
8f11f0be76 chore: add linting 2022-01-19 15:54:02 +05:30
Adhiraj Singh
7bb6e3ceeb refactor: chats.set event 2022-01-16 13:02:38 +05:30
Adhiraj Singh
9c0a3b8962 feat: add option to specify limit for custom upload host 2022-01-03 12:40:55 +05:30
Pokoke
3ad02f0317 fix listMessage (#1070)
* fix listMessage

* Default listType

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>

* use the ListMessageListType enum

* use the ListMessageListType enum

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2021-12-31 15:45:35 +05:30
Adhiraj Singh
5ae0b98636 feat: add replace type for messages.upsert 2021-12-23 10:54:17 +05:30
Adhiraj Singh
ed4f234fd8 fix: buttonText should be optional 2021-12-19 22:40:16 +05:30
Rajeh Taher
d62db2bbd6 Added List message support and removed "saving auth state" (#1048)
* Added template support and footers for buttons & templates

* Template message readme

* got rid of "saving auth state" and added lists

* added body

* Update README.md
2021-12-19 22:29:35 +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
38a44be006 perf: experimental do not use fs for enc stream 2021-12-17 18:27:03 +05:30
Adhiraj Singh
d15dd6e1d2 feat: add "direct_path" to media messages 2021-12-13 17:31:20 +05:30
Guilherme França
b68ab8b8ac refactor: change pttAudio param to ptt in send audio message as a voice note (#1002) 2021-12-11 00:13:03 +05:30
Adhiraj Singh
78fd72c8e5 feat: implement message retry handling
so if a message fails to decrypt on the other user's end -- it can be retried
2021-12-04 13:47:24 +05:30
Adhiraj Singh
b5ac28d426 feat: implement partial media downloads 2021-12-02 11:38:24 +05:30
Rajeh Taher
cd9c313e47 [MD] Added template support and footers for buttons & templates (#942)
* Added template support and footers for buttons & templates

* Template message readme
2021-11-30 10:40:54 +05:30
Maurilho Batista
e810f2dec5 Add support for stream as media message input (#905)
* Add support for stream as media message input

* refactor: use async/await on readable toBuffer

* refactor: be more explicit about using a readable stream

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-11-26 10:30:15 +05:30
Adhiraj Singh
3e54741042 feat: cache media uploads 2021-11-10 19:22:00 +05:30
Adhiraj Singh
ba453a588b feat: implement external patch parsing + app state sync on login 2021-11-08 15:07:25 +05:30
Adhiraj Singh
91bbf575ec implement recent history sync 2021-10-08 10:50:55 +05:30
Adhiraj Singh
063803ae1b delete message fix 2021-10-05 15:51:14 +05:30
Adhiraj Singh
fdfe310fdf implement encrypting app patches 2021-09-28 19:22:39 +05:30
Adhiraj Singh
f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30
Adhiraj Singh
acc551a3f1 add media cache option 2021-08-22 14:30:48 +05:30
Adhiraj Singh
77fb0322fd Update Message.ts 2021-08-22 14:17:11 +05:30
Adhiraj Singh
96cd3b985e add image+video+sticker dimensions 2021-08-15 13:19:54 +05:30
Adhiraj Singh
75c15e7767 generic media uploads 2021-08-06 18:41:07 +05:30
Adhiraj Singh
0a746b9f53 add viewOnce + buttons 2021-08-06 11:55:09 +05:30
Adhiraj Singh
39a6d804e1 group disappearing messages fix + state maintain 2021-08-04 17:19:28 +05:30
Adhiraj Singh
b5ee036ae9 update proto 2021-07-29 20:33:19 +05:30
Adhiraj Singh
5c4a317213 update proto + message info 2021-07-29 13:34:02 +05:30
Adhiraj Singh
8a5e6489c0 patch messages.update 2021-07-18 21:41:50 +05:30
Adhiraj Singh
71e34fc5f8 Cleanup + add remaining utils 2021-07-12 23:50:08 +05:30