Commit Graph

73 Commits

Author SHA1 Message Date
devlikeapro
b8464d3665 Add lid to Contact - contact sync, history sync, group participants (#1472) 2025-06-18 08:08:09 -03:00
canove
fa706d0b50 chore: format everything 2025-05-06 12:10:19 -03:00
Rajeh Taher
99142aac96 proto: update manually to 2.3000.1020608496 2025-03-06 04:22:17 +02:00
ShellTear
4a90ea4688 fix lint 2025-03-04 04:08:09 +02:00
ShellTear
fccca8ab30 fix(sync): complete unfinished async implementation
Added 'await' to callers of 'makeLtHashGenerator.finish' to handle its Promise return after 'lt-hash.ts' was made asynchronous  by replacing old sync hkdf implementation.

Fixes #1286
2025-03-04 04:05:52 +02:00
João Lucas de Oliveira Lopes
8083754621 refactor: turn hkdf functions to async and remove extra deps (#1272)
* refactor: remove futoin-hkdf dependency and update hkdf implementation

* refactor: use crypto subtle and update functions to async

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:31:48 +02:00
contato.mateusfr@gmail.com
21f8431e61 Dependency Inversion for Logger (#1153)
* feat: interface "ILogger" created
feat: interface "ILogger" used instead of pino logger
feat: "PinoLoggerAdapter" created to implement "ILogger" interface

* feat: PinoLoggerAdapter removed
feat: ILogger mapping the features we're using from pino

* fix: sort imports

---------

Co-authored-by: Mateus Franchini de Freitas <contato.mateusfr@outlook.com>
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:30:51 +02:00
Rajeh Taher
18ac07df8e lint: 0 warnings left 2024-10-14 05:15:10 +03:00
Rajeh Taher
647f8d767f chat-utils: fix the clear chat chat mod 2024-10-14 02:52:23 +03:00
建辉
6ff945502d feat: add label feature (#955)
Co-authored-by: 刘建辉 <liujianhui@gongchang.com>
2024-09-22 14:48:17 +03:00
azudin
d3cf789f82 Update chat-utils.ts 2023-12-07 23:11:07 +08:00
azudin
ece99eab23 Fixed star message 2023-12-02 07:26:09 +08:00
gusta4321
2f438a6539 fix: Fixed typescript build at chat-utils.ts file (#118) 2023-06-15 21:08:51 -03:00
Rafael Garcia
3ac29e131d Slint fixes applied 2023-05-15 09:41:33 -05:00
Rafael Garcia
38f285760d feat(labels): modify chat utils 2023-05-14 12:44:19 -05:00
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
154926ec3c chore: correctly throw app state key not found 2022-11-06 20:06:50 +05:30
Adhiraj Singh
2a8ce563a2 chore: remove redundant newMutations log 2022-11-06 19:51:45 +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
e08dd10198 refactor!: use proto.Conversation's own chat mutation fields instead of baileys added 2022-09-29 11:06:09 +05:30
Adhiraj Singh
bb983cd30d chore: reduce logging 2022-09-28 10:40:29 +05:30
Adhiraj Singh
ae3ac78dc3 feat: pass axios config to all axios instances 2022-09-19 17:46:43 +05:30
Ilya Borodin
4f1d9492c5 Changed concat to push 2022-08-20 23:21:56 +05:30
Adhiraj Singh
dc07d31dc7 fix: correctly handle deleteMessageFromMe 2022-08-17 16:00:08 +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
LeonardoBein
b42be6bce4 Change profile name for yourself (#1913)
* feat: change profile name

* fix: unnecessary return
2022-07-21 15:56:51 +05:30
Adhiraj Singh
7b8390f1ca fix: delete chat + star message actions not syncing 2022-07-14 11:23:07 +05:30
Adhiraj Singh
40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Adhiraj Singh
41ca76a0af fix: chats.delete patch on sync 2022-07-06 22:05:01 +05:30
Adhiraj Singh
2c03802939 chore: use "null" to signify removal of mute 2022-06-27 15:14:05 +05:30
Adhiraj Singh
eaf0f37d24 refactor: use event-buffer for state sync resyncs 2022-06-27 14:51:26 +05:30
Dwi Rizqi
e7087cabf5 fix: Delete Message For Me (#1718)
* Add Timestamp for deleteMessageForMe

* Fix Typo Readme

* Add Timestamp for deleteMessageForMe

* fix: Typo type timestamp
2022-06-13 20:13:52 +05:30
Adhiraj Singh
f87f89329b perf: avoid excess memory usage when syncing state 2022-06-11 20:25:57 +05:30
Adhiraj Singh
59652a5368 feat: handle chat deletes + message stars 2022-05-25 12:12:17 +05:30
burstfreeze
767120a555 fix: undefined on unpin action (#1551) 2022-04-29 18:32:37 +05:30
Adhiraj Singh
6ee60bff67 chore: add ability to specify ISyncActionMessageRange directly 2022-04-28 16:26:23 +05:30
Adhiraj Singh
87c1a04503 feat: add more sanity checks to chat patch 2022-04-28 15:49:02 +05:30
Adhiraj Singh
dba6d2e0cb fix: do not throw error on conditions not matching in lastMessage check 2022-04-28 15:24:10 +05:30
Adhiraj Singh
f1b64c3c35 feat: send presence update when name changed 2022-04-08 23:29:48 +05:30
Adhiraj Singh
39eb0d1427 docs: add logs 2022-04-07 11:45:09 +05:30
Adhiraj Singh
0d94315776 feat: handle unarchiveChats setting 2022-04-07 11:29:57 +05:30
Adhiraj Singh
ebf4aa6772 fix: normalize participant in last message 2022-04-06 20:43:09 +05:30
Adhiraj Singh
ec6e904db4 refactor: process sync actions out of socket 2022-03-29 14:16:51 +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
d15bde5d17 refactor: app state handling
1. fixes snapshot patches not being included
2. fixes all mutations being passed when syncing from scratch
3. simpler chat mutation model
4. do not retry if key is not found
2022-01-07 14:29:52 +05:30
burstfreeze
98af4a6624 Fix #1010 by asking for full list of sync states when needed (#1043)
* Process patches that are longer.

* Fixed type declaration

* Changed resync behavior from recusive to iterative

* refactor: cleaner handling of hasMorePatches

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-12-22 20:57:58 +05:30
Adhiraj Singh
c87d8b8129 refactor: update chat modifications to be uniform across MD + legacy 2021-12-21 10:53:39 +05:30
Adhiraj Singh
19a9980492 feat: add legacy connection 2021-12-17 19:27:04 +05:30