Commit graph

337 commits

Author SHA1 Message Date
Mikunj
d4ea483aa0 Filter invalid authorisations from the file server 2020-06-24 10:32:41 +10:00
vincent
152adbf4d5 syncMessage done 2020-06-24 05:39:29 +10:00
Audric Ackermann
6a13839d9d
address reviews 2020-06-23 15:20:51 +10:00
Audric Ackermann
9baefb573e
fix tests 2020-06-23 14:41:36 +10:00
Audric Ackermann
0668798b72
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-23 14:08:39 +10:00
Audric Ackermann
aa797f6670
various changes to be reverted. kind of working session chats only. 2020-06-23 13:55:47 +10:00
Mikunj
53727b7e59 Update ClosedGroupChatMessage 2020-06-23 13:37:18 +10:00
Vincent
f72423c2ba types-etc 2020-06-23 11:57:50 +10:00
Audric Ackermann
cf7635428a
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-23 11:55:08 +10:00
Mikunj
4d0d2727bd Added strict type checking to group id 2020-06-23 10:51:15 +10:00
Audric Ackermann
77025d1afd
adress review 2020-06-23 10:48:30 +10:00
Audric Ackermann
bd940a9f79
add groupUpdate message and groupInfo to new pipeline 2020-06-22 18:39:43 +10:00
Audric Ackermann
b0ed0207e0
fix one to one (session) chats with just the body set 2020-06-22 17:44:55 +10:00
Audric Ackermann
6380f7426f
fix pairing devices bugs since move to new pipeline 2020-06-22 15:05:17 +10:00
Vincent
aa6ce0787b with-electron? 2020-06-22 12:05:37 +10:00
Mikunj
8f492f8e74 Review changes 2020-06-22 09:10:57 +10:00
Vincent
65148300e7 from-to-toSyncMessage 2020-06-22 02:42:46 +10:00
Vincent
58ab611c9e pulled 2020-06-22 01:51:31 +10:00
Mikunj
3bf5796cd5 Modify periodic check implementation 2020-06-19 22:14:25 +10:00
Audric Ackermann
e0979fc4a5
add RequestContactSyncMessage and RequestGroup and RequestConfiguration messages to new pipeline 2020-06-19 16:51:23 +10:00
Mikunj
d862269f8d Update tests 2020-06-19 16:21:27 +10:00
Audric Ackermann
9c1f0e76fd
add RequestContactSyncMesage 2020-06-19 16:17:37 +10:00
Audric Ackermann
6e1258e3d1
expirationTimerUpdate uses new sending pipeline 2020-06-19 14:30:40 +10:00
Audric Ackermann
ff7ca5a0d5
add leave of closed group to new sending pipeline 2020-06-19 13:02:19 +10:00
Audric Ackermann
34cec0be34
RequestGroupInfo via new pipeline 2020-06-19 12:52:07 +10:00
Audric Ackermann
439ea09027
lint 2020-06-19 11:42:40 +10:00
Audric Ackermann
e43dc734de
TypingMessage sent with new sending pipeline 2020-06-19 11:34:41 +10:00
Audric Ackermann
4867a560d0
trigger send for all devices of a closed group message 2020-06-19 11:31:51 +10:00
Audric Ackermann
9ec0c8e6a8
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-19 10:09:54 +10:00
Mikunj
ef76972ccb Allow passing a cache to the queue 2020-06-19 09:33:23 +10:00
Audric Ackermann
12bb6673ea
fix session requests 2020-06-19 09:19:36 +10:00
Audric Ackermann
0a2af13cb1
start of fix of session-request processing 2020-06-18 17:45:32 +10:00
Audric Ackermann
ae67f424a3
move instance of MessageQueue export to ts/session folder 2020-06-18 15:04:48 +10:00
Audric Ackermann
c947d99369
getMessageQueue() rather than .messageQueue to avoid startup issue 2020-06-18 14:23:29 +10:00
Audric Ackermann
d946678d59
fix encryption type for rawMessage 2020-06-18 14:23:02 +10:00
Vince
fe7aaa0aaa
Merge pull request #1177 from vincentbavitz/message-queue-test
Message Queue Tests
2020-06-18 14:18:02 +10:00
Vincent
40368793fd rm-redundant-files 2020-06-18 14:07:09 +10:00
Vincent
99674ed2ba Fixup PubKey.isEqual 2020-06-18 13:53:47 +10:00
Vincent
20b2ba1c8a generateMemberList-compactify 2020-06-18 13:46:58 +10:00
Vincent
18af13d7d9 merge-fixups 2020-06-18 13:24:53 +10:00
Audric Ackermann
457a94790c
fix await of promises in if statements 2020-06-18 12:28:31 +10:00
Mikunj
3f93b25ac2 Added string utils 2020-06-18 11:30:30 +10:00
Vincent
42a788c8e3 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-queue-test 2020-06-18 11:21:52 +10:00
Mikunj
57b5effaf2 Replace long 2020-06-18 10:57:39 +10:00
Mikunj
ae2b8334e0 Replace bytebuffer component 2020-06-18 10:49:59 +10:00
Vincent
2c2ed1b274 review-fixes 2020-06-18 10:27:59 +10:00
Audric Ackermann
2e78f755b4
replace sending of established, grant and link request messages 2020-06-18 08:55:28 +10:00
Vincent
211d4e1551 improve sendToGroup 2020-06-17 21:40:17 +10:00
Mikunj
4747c5f0db Merge branch 'clearnet' into multi-device-protocol-test 2020-06-17 14:01:37 +10:00
Mikunj
0933cf8b02 Added multi device protocol tests 2020-06-17 13:57:12 +10:00
Audric Ackermann
4865b72e93
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 2020-06-17 13:16:31 +10:00
Vincent
33488a9520 final 2020-06-17 13:13:19 +10:00
Audric Ackermann
28fb1dd12a
address PR reviews 2020-06-17 11:39:26 +10:00
Mikunj
30bc4c6cbc Simplify 2020-06-17 11:05:07 +10:00
Mikunj
f681fd619d Added small helper functions 2020-06-17 10:54:31 +10:00
Audric Ackermann
4d2b08f4a2
remove getSessionRequest 2020-06-17 08:50:28 +10:00
Vincent
94f0fbb65a params-check 2020-06-16 17:59:20 +10:00
Vincent
ac2bb65c2a isEqual on ChatMessages 2020-06-16 16:53:10 +10:00
Mikunj
a83ce4ee16 Review fixes 2020-06-16 15:49:31 +10:00
Audric Ackermann
10e095ba9d
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 2020-06-16 15:46:33 +10:00
Mikunj
57ea59e5b7 Minor fixes 2020-06-16 14:39:37 +10:00
Mikunj
c027490d2f Merge fixes 2020-06-16 13:07:18 +10:00
Mikunj
27f4378de8 Merge branch 'clearnet' into multi-device-protocol 2020-06-16 13:02:01 +10:00
Vincent
fde52e7b7f splitting 2020-06-16 12:17:32 +10:00
Mikunj
93c19395c1 Change back to old window syntax and allow stubbing of it 2020-06-16 11:14:58 +10:00
Vincent
dbc44cb78b Merge branch 'open-group-class' into message-queue-test 2020-06-16 09:21:35 +10:00
Vincent
131123e751 rm opengrouprefs 2020-06-16 08:54:48 +10:00
Vincent
e9cc824b0b open groups 2020-06-16 08:52:07 +10:00
Vincent
6afddf38df finalise 2020-06-16 08:41:18 +10:00
Vincent
73d44d60cf mostly-tests 2020-06-16 07:44:37 +10:00
Audric Ackermann
66de8d9648
remove plenty of the friend logic 2020-06-15 18:05:14 +10:00
Mikunj
ae44f0da0f Remove old multi device functions 2020-06-15 14:38:06 +10:00
Mikunj
0275d43fa4 Merge branch 'clearnet' into multi-device-protocol 2020-06-15 13:30:35 +10:00
Vincent
14ca56581c Merge branch 'message-sending-refactor-queue' into message-queue-test 2020-06-15 13:07:10 +10:00
Mikunj
7942ba086f Fetch device mappings from server when needed 2020-06-15 12:52:08 +10:00
Vincent
8417e3660d fixup-review 2020-06-15 10:54:38 +10:00
Vincent
fc45f1c438 Merge branch 'message-sending-refactor-queue' into message-queue-test 2020-06-15 10:36:29 +10:00
Vincent
0f2d24fa11 fixup-review 2020-06-15 10:04:38 +10:00
Vincent
2be1c2fd94 groups-test 2020-06-15 10:03:38 +10:00
Mikunj
7a6ea97efb Handle strings in MultiDeviceProtocol 2020-06-15 09:37:06 +10:00
Vincent
35665f3cb6 is-medium-group 2020-06-15 09:03:10 +10:00
Vincent
bffb43dd19 review-fixes 2020-06-15 08:47:05 +10:00
Mikunj
b36b3e7725 Slowly replace old multi device functions 2020-06-12 16:09:23 +10:00
Vincent
d0c9f8b773 review-fixes 2020-06-12 15:51:00 +10:00
Mikunj
c8414fdce6 Simplify sql and data files 2020-06-12 15:44:38 +10:00
Vincent
48e3ded9d2 review changes 2020-06-12 14:56:33 +10:00
Vincent
affba056d2 just-cache 2020-06-12 11:40:29 +10:00
Vincent
e09372eacf tightening up queue 2020-06-12 11:20:38 +10:00
Audric Ackermann
38f64cf172
Merge pull request #1172 from Bilb/message-sending-refactor 2020-06-12 01:59:05 +01:00
Audric Ackermann
492cc96ad2
updateSessionTimestamp: return false if no write to DB needed 2020-06-12 10:44:35 +10:00
Vincent
00122333ff opengroupmessage 2020-06-12 06:19:39 +10:00
Vincent
6c35f3c773 optimized OpenGroup 2020-06-12 06:02:43 +10:00
Vincent
a76a0bed00 sync proto 2020-06-11 08:37:07 +10:00
Vincent
3140dee2b2 queue-utils 2020-06-11 08:19:44 +10:00
Vincent
0d45ed4d68 OpenGroup class and sending to Groups 2020-06-11 06:14:44 +10:00
Vincent
83f70f1ff0 OpenGroup class and sending to Groups 2020-06-11 06:09:30 +10:00
Vincent
8d0829e8e4 pulled 2020-06-11 02:09:57 +10:00
Mikunj Varsani
542615961c
Merge pull request #1170 from Mikunj/message-sender-retry
Message sender retry
2020-06-10 17:54:32 +10:00
Mikunj
1c84fa6c02 Renamed retries to attempts 2020-06-10 15:55:32 +10:00
Mikunj Varsani
88f87c0a70
Update ts/session/sending/MessageSender.ts
Co-authored-by: Audric Ackermann <audric.bilb@gmail.com>
2020-06-10 15:32:50 +10:00
Mikunj
3b8b9f7306 Added comments 2020-06-10 15:03:36 +10:00
Mikunj
090f0e2c38 Add retrying and tests 2020-06-10 11:37:45 +10:00
Audric Ackermann
f17ffd295a
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 2020-06-10 10:38:26 +10:00
Audric Ackermann
4c07bc06fd
address reviews 2020-06-10 10:18:56 +10:00
Audric Ackermann
7a797737e0
rename SessionReset -> SessionRequest 2020-06-10 10:07:44 +10:00
Audric Ackermann
2b58aff532
use pubkeys and toRawMessage() 2020-06-09 16:30:09 +10:00
Mikunj
653efaf9cf Fixed libsignal-protocol declaration 2020-06-09 16:18:02 +10:00
Audric Ackermann
da1edab63d
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 2020-06-09 16:17:16 +10:00
Mikunj Varsani
9b93e247eb
Merge pull request #1167 from Mikunj/message-sender-test
Added Message Sender tests
2020-06-09 16:04:42 +10:00
Vincent
2095c63a57 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-sending-rafactor__cache 2020-06-09 15:53:19 +10:00
Audric Ackermann
73c4020daf
throw error on sendSessionRequest and log it in sendSessionRequestIfNeeded 2020-06-09 14:01:24 +10:00
Vincent
eb116e587e simplified conversion to buffer 2020-06-09 13:30:48 +10:00
Vincent
fb903daf20 sync msgs 2020-06-09 13:26:20 +10:00
Mikunj
9b855a11e1 Added MessageSender tests 2020-06-09 12:30:19 +10:00
Audric Ackermann
b9aa0ad8d5
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 2020-06-09 12:18:25 +10:00
Audric Ackermann
886f279540
hide errors of sendSessionRequest message.send() 2020-06-09 12:12:37 +10:00
Audric Ackermann
dc00923f17
add SessionProtocol test 2020-06-09 11:31:36 +10:00
Vincent
f0ba4fa276 partial raw messages 2020-06-09 09:55:27 +10:00
Vincent
86cbc07855 linted 2020-06-09 09:54:22 +10:00
Vincent
80bc3520bd queue 2020-06-09 09:41:44 +10:00
Mikunj
e9983099a9 Fix tests 2020-06-09 08:55:32 +10:00
Vincent
ef65e47819 Merge branch 'message-sender' of https://github.com/Mikunj/session-desktop into message-sending-rafactor__queue 2020-06-09 07:50:24 +10:00
Vincent
392c201a13 linted 2020-06-09 07:49:03 +10:00
Vincent
5f38e216a5 merge w cache 2020-06-09 07:19:33 +10:00
Vincent
728b43be9e cache-pull-from-db-finish 2020-06-09 07:16:14 +10:00
Vincent
d0005205a4 queue-st 2020-06-09 02:53:23 +10:00
Vincent
a2844b48f4 linted 2020-06-07 12:52:18 +10:00
Vincent
d9bb7451a3 linted 2020-06-05 17:07:54 +10:00
Vincent
b203dc4493 Finalized cache 2020-06-05 16:56:47 +10:00
Mikunj
1dad49057b Implement MessageSender 2020-06-05 16:20:09 +10:00
Mikunj
cbc32b9989 Disable no-unused-variable for session related ts files. 2020-06-05 13:33:46 +10:00
Mikunj
d1bfcd340b Fix imports.
Fix closed group messages.
2020-06-05 13:26:27 +10:00
Vincent
afcbf7049e linted 2020-06-05 12:51:03 +10:00
Vincent
bbfa6499e0 Stubbed cache 2020-06-05 12:02:13 +10:00
Vincent
fb4c6fb387 testing stubs 2020-06-05 11:38:30 +10:00
Audric Ackermann
15f71cb9c8
move sessionprotocol to a full static class 2020-06-05 10:36:33 +10:00
Vincent
734debe841 PendingMessageCache Done 2020-06-05 10:14:52 +10:00
Audric Ackermann
a92f4ab8da
address reviews 2020-06-05 08:55:21 +10:00
Audric Ackermann
1c570e1c2f
Merge branch 'message-sending-refactor' of github.com:loki-project/loki-messenger into message-sending-refactor 2020-06-04 16:53:07 +10:00
Vincent
193573aa67 getFromStorage complete 2020-06-04 16:11:50 +10:00
Vincent
b8ec9bd995 Typify PubKey 2020-06-04 15:38:21 +10:00
Vincent
372754e360 Pulled from audric 2020-06-04 13:56:06 +10:00
Vincent
a9d9303449 Prep for pull 2020-06-04 13:55:20 +10:00
Vincent
a5cfbd584b linted 2020-06-04 13:38:39 +10:00
Vincent
dec7aa10c8 Revert pulls 2020-06-04 13:16:37 +10:00
Mikunj
21e2469b75 Add more tests 2020-06-02 14:57:54 +10:00
Mikunj
cd58e9b86e Add utils for stubbing.
Added ImportMock for easier es6 stubbing.
2020-06-02 12:13:13 +10:00
Audric Ackermann
935ac8d8f9
lint 2020-06-02 11:36:33 +10:00
Audric Ackermann
1dec669d11
make sessionProtoco read and write to db 2020-06-02 11:35:31 +10:00
Audric Ackermann
a7572470df
fix some ts errors on sending files 2020-06-02 11:18:14 +10:00
Audric Ackermann
101fbedf0a
update SessionProtocol. need merge to go further 2020-06-02 11:17:52 +10:00
Audric Ackermann
bfade45b00
add start of SessionProtocol 2020-06-01 16:28:52 +10:00
Mikunj
b644e2a05f Added more types.
Finalise MessageEncrypter.
2020-06-01 12:56:15 +10:00
Mikunj
36762dbbf2 Added libsignal-protocol typings.
Added MessageEncrypter.
2020-06-01 12:14:37 +10:00
Audric Ackermann
6faa764419
lint 2020-06-01 11:22:00 +10:00
Audric Ackermann
ee6ee7ec4f
Merge remote-tracking branch 'upstream/message-sending-refactor' into audric/refactor-message-sending 2020-06-01 11:21:02 +10:00
Audric Ackermann
9fd929e812
lint 2020-05-29 15:44:18 +10:00
Audric Ackermann
3840d061c3
add test for closed group chat 2020-05-29 15:29:14 +10:00
Audric Ackermann
934838cc1c
add tests for opengroup message 2020-05-29 15:09:48 +10:00
Audric Ackermann
1f2f0535a1
prekeybundle fields are not optional 2020-05-29 11:08:55 +10:00
Audric Ackermann
73dbcd890b
add test for ChatMessage 2020-05-29 09:40:15 +10:00
Audric Ackermann
5cec07ef16
add ChatMessage with quotes and attachments 2020-05-28 17:00:58 +10:00
Mikunj
0f6053ce08 Add events to MessageQueueInterface.
Added strict typings for events.
2020-05-27 11:05:30 +10:00
Audric Ackermann
6860875477
remove setIdentifier and make identifier optional in constructor 2020-05-26 15:25:18 +10:00
Audric Ackermann
da8999263b
make identifier a uuid 2020-05-26 14:41:41 +10:00
Audric Ackermann
2acba52933
use undefined or ? rather than null 2020-05-26 11:13:14 +10:00
Audric Ackermann
cb74c9fe1d
use extends to extends typescript constructor parameters 2020-05-26 11:11:32 +10:00
Audric Ackermann
7191038f21
add SessioNEstablishedMessage and tests 2020-05-26 10:53:26 +10:00
Audric Ackermann
46a48406c7
add EndSession and SessionReset messages & tests 2020-05-26 10:45:06 +10:00
Audric Ackermann
601d978883
make OutgoingMessage interface an abstract class and add setIdentifier 2020-05-26 09:24:12 +10:00
Audric Ackermann
798efd8e00
use export* syntax to clean ts index.ts 2020-05-25 17:25:30 +10:00
Audric Ackermann
9ea95e59fa
add GroupInvitationMessage and tests 2020-05-25 16:38:52 +10:00
Audric Ackermann
56d744fda9
add TypingMessage and tests 2020-05-25 16:38:05 +10:00
Audric Ackermann
956491ec82
session established message with ttl of 5 minutes 2020-05-25 14:05:46 +10:00
Audric Ackermann
fa26ff9e32
pass args by {} and add deviceLink tests 2020-05-25 11:40:17 +10:00
Audric Ackermann
f1244f3031
add device unlink and receiptMessage class and tests 2020-05-22 17:50:45 +10:00
Audric Ackermann
81cb1122f8
remove window.getMessageTTL 2020-05-22 17:49:48 +10:00
Mikunj
3dfc1ca213 Improved JobQueue.
Added tests.
2020-05-22 15:47:07 +10:00
Audric Ackermann
e45ef6f291
add test for unpairing request message 2020-05-22 11:43:17 +10:00
Audric Ackermann
443f177daa
ContentMessage remove auto padding 2020-05-22 11:30:54 +10:00
Mikunj
e7826cfb34 linting 2020-05-22 10:30:57 +10:00
Mikunj
e0f27ba712 basic classes for message sending 2020-05-22 10:26:11 +10:00
Audric Ackermann
892b2f8474
add ttl as abstract method so each message can define its own 2020-05-22 09:58:32 +10:00
Audric Ackermann
f4a24c5c98
add empty messages ts files 2020-05-22 09:23:38 +10:00
Mikunj
15560a4cb5 Linting and comments 2020-05-21 16:44:18 +10:00
Mikunj
46b3032a05 Remove MessageCategory.
We don't need this as we can infer the encryption type from the message.
2020-05-21 16:31:15 +10:00
Mikunj
9bd08ba930 Initial barebone commit for messages refactor 2020-05-21 16:14:22 +10:00