Commit graph

1023 commits

Author SHA1 Message Date
Audric Ackermann
f7e163c142
add sending of message for opengroupv2` 2021-04-26 11:56:00 +10:00
Audric Ackermann
35d66d8865
fix bug fetching new token every request 2021-04-23 17:05:10 +10:00
Audric Ackermann
40793eb74d
fix leave of opengroupv2 logic 2021-04-23 15:43:49 +10:00
Audric Ackermann
9d825dc2d2
add start of OpenGroup Pollers v2 to start of the app 2021-04-23 14:59:08 +10:00
Audric Ackermann
193fb2a101
move some message interactions logic to another file 2021-04-23 11:08:38 +10:00
Audric Ackermann
9de65c8813
move ConversationController to its own file so we can fetch it easily 2021-04-23 10:12:53 +10:00
Audric Ackermann
f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann
6896cffd75
Merge branch 'clearnet' into HEAD 2021-04-22 18:02:01 +10:00
Audric Ackermann
27323a12f4
Merge branch 'master' into clearnet 2021-04-22 17:55:35 +10:00
Audric Ackermann
19f3b6014d
add poller for open group v2 2021-04-22 17:00:02 +10:00
Audric Ackermann
897bad2d5e
throw only for breaking stuff on ApiV2 calls 2021-04-22 10:37:55 +10:00
Audric Ackermann
b68338e26c
working get and post request with opengroup api v2 2021-04-21 14:42:59 +10:00
Audric Ackermann
c07271109f
Add a ConversationType OPEN_GROUP 2021-04-20 15:52:19 +10:00
Audric Ackermann
b9586c90ce
working open group v2 getInfo for https only 2021-04-20 14:52:02 +10:00
Ryan Tharp
6a1d0e93a3
Make 502 retry 2021-04-14 19:41:54 -07:00
Audric Ackermann
05987c6e8b
Merge remote-tracking branch 'upstream/master' into allow-unpad-attachments 2021-04-14 14:16:06 +10:00
Audric Ackermann
d98700b17f
allow unpadding of attachments if needed
currently, the padding of attachments is disabled behind  a featureFlags
2021-04-14 14:15:02 +10:00
Audric Ackermann
1a2d148482
add attachment padding 2021-04-14 14:12:22 +10:00
Audric Ackermann
bbe62417e9
Merge branch 'clearnet' into encrypt-local-attachments 2021-04-14 10:48:15 +10:00
Audric Ackermann
cfc7825eee
Merge remote-tracking branch 'upstream/master' into clearnet 2021-04-14 10:45:52 +10:00
Audric Ackermann
ccf8a31ae3
move Attachments and Attachments_test to typescript 2021-04-14 10:34:48 +10:00
Audric Ackermann
42f0d21740
generate attachment key on migration 2021-04-14 10:33:52 +10:00
Audric Ackermann
050739b0ab
cleanup old blobs from time to time 2021-04-13 14:16:50 +10:00
Audric Ackermann
2393dce448
fix tslint 2021-04-13 10:27:33 +10:00
Audric Ackermann
a0698202df
redact snode IP used in logs on production builds 2021-04-13 10:21:09 +10:00
Audric Ackermann
3ea628a02f
pin certificate for seed nodes 2021-04-13 10:20:56 +10:00
Audric Ackermann
f12ca66008
redact snode IP used in logs on production builds 2021-04-12 16:46:20 +10:00
Audric Ackermann
47026b8d5b
pin certificate for seed nodes 2021-04-12 15:38:19 +10:00
Audric Ackermann
ed30be5334
fix attachments loading for avatar and exporting files 2021-03-26 16:31:27 +11:00
Audric Ackermann
def03c8baa
working encrypt/decrypt of attachments 2021-03-26 13:07:42 +11:00
Audric Ackermann
142bbd8eee
disable getVersion to snodes calls as we don't need it anymore 2021-03-24 13:34:08 +11:00
Audric Ackermann
8a2b6a5519
remove fallback to node-fetch 2021-03-24 13:33:55 +11:00
Audric Ackermann
2132395afb
disable getVersion to snodes calls as we don't need it anymore 2021-03-24 10:58:30 +11:00
Audric Ackermann
53d16d7dac
remove fallback to node-fetch 2021-03-24 10:30:23 +11:00
Audric Ackermann
f5a4094e0a
Merge pull request #1542 from Bilb/refactor-message-types
refactor to Visible and ControlMessage types
2021-03-19 12:57:12 +11:00
Audric Ackermann
ec6a5995db
sync expire timer updates 2021-03-19 12:14:23 +11:00
Audric Ackermann
79193ee7be
refactor to Visible and ControlMessage types 2021-03-19 10:43:47 +11:00
Audric Ackermann
eb30c7823c
add a way to click the toast to turn on microphone to show the settings 2021-03-16 15:19:56 +11:00
Audric Ackermann
24d33c7900
Merge branch 'clearnet' into add-attachment-padding 2021-03-16 11:22:48 +11:00
Audric Ackermann
0228cd5115
add attachment padding 2021-03-05 17:13:46 +11:00
Audric Ackermann
35e57f2509
move mnemonic.js to typescript 2021-03-05 14:52:44 +11:00
Audric Ackermann
553f264d12
make unread attrs as before a number, and remove calculatingPow
calculating pow is just the same as sending state
2021-03-05 13:48:58 +11:00
Audric Ackermann
ad117fe4e5
uniformized redux convo type and getProps() of conversation 2021-03-05 11:11:53 +11:00
Audric Ackermann
4a794e90a0
signInWithRecovery = show full screen loader 2021-03-04 10:43:17 +11:00
Audric Ackermann
39f8ca293a
speedup tests 2021-03-04 09:55:44 +11:00
Audric Ackermann
aac54e6045
Merge remote-tracking branch 'upstream/clearnet' into restore-handle-configuration 2021-03-03 13:54:39 +11:00
Audric Ackermann
6fbe060973
move deleteAccount() to AccountManager 2021-03-03 10:36:30 +11:00
Audric Ackermann
feb6d5a39a
register allconvos on ActionPanel start 2021-03-03 09:31:24 +11:00
Audric Ackermann
2ae259092f
fix propagation of WrongSwarmError in pollForAllKeys() 2021-03-03 09:29:03 +11:00
Audric Ackermann
533b95c827 fix updateMessage being always at the end of the messagesList
this was because we were using Date.now() always rather than using the
envelope timestamp to save the update
2021-03-02 13:40:48 +11:00
Audric Ackermann
db167eaf1b fix a bug preventing our avatar to be updated on restore from seed
this was due to the fact that the redux was not ready when our
conversation is created. so the events were not linked
2021-03-02 13:31:12 +11:00
Audric Ackermann
05e9c936ff speed up loading of messages by not notify on every new message 2021-03-02 12:41:25 +11:00
Audric Ackermann
f6e3b354d0 join openGroup => allow only one at a time for each channel/server 2021-03-02 11:52:00 +11:00
Audric Ackermann
c656dd25cf move configMessage handling to a another file 2021-03-02 11:27:20 +11:00
Audric Ackermann
b8a17bcd94 do not include lokiProfile on sync Message => we use ConfigMessage now 2021-03-01 16:46:16 +11:00
Audric Ackermann
e052a6743a fix building of sync message from 1-to-1 convo 2021-03-01 16:38:40 +11:00
Audric Ackermann
9586c3a06a add linking of a device to the Registration logic 2021-03-01 16:20:35 +11:00
Audric Ackermann
305ece1c7c update our profile on incoming configMessage sent after our last update 2021-03-01 14:21:29 +11:00
Audric Ackermann
5d6d81b9ef Move accountManager to typescript 2021-03-01 10:39:46 +11:00
Audric Ackermann
0a539c79ce
on signup/register, set last_profile_update_timestamp to now() 2021-02-26 16:14:13 +11:00
Audric Ackermann
b6ff4dc186
always share profileKey if it is set 2021-02-26 16:07:13 +11:00
Audric Ackermann
43e2ca00ff
do not sync profileKey on sync => only on ConfigurationMessage 2021-02-26 12:08:07 +11:00
Audric Ackermann
fc24df00fb
always share our profileKey on outgoing messages 2021-02-26 11:48:08 +11:00
Audric Ackermann
01085244bd
split up registration signup tab logic to sub components 2021-02-26 11:27:29 +11:00
Audric Ackermann
641f9ee368
Fix the bug where if we leave and get added back, we get removed again 2021-02-25 17:31:18 +11:00
Audric Ackermann
c55f204440
Merge branch 'clearnet' into restore-handle-configuration 2021-02-25 16:36:03 +11:00
Audric Ackermann
08c41004a2
do not send expire timer to member added on closed group 2021-02-25 15:16:23 +11:00
Audric Ackermann
215cffdd75
address reviews 2021-02-25 14:48:11 +11:00
Audric Ackermann
e0c2cf8e9a
Force configuration message on avatar or display name update 2021-02-25 14:23:09 +11:00
Audric Ackermann
3f59ce1692
fix updates of message on message syncing 2021-02-25 12:59:18 +11:00
Audric Ackermann
a61f5e6814
add contacts to ConfigurationMessage 2021-02-25 12:50:23 +11:00
Audric Ackermann
0a82bf98fa
Add displayName and avatar pointer to ConfigurationMessage 2021-02-25 10:28:41 +11:00
Audric Ackermann
e466062f15 WIP 2021-02-23 14:22:01 +11:00
Audric Ackermann
ca22b4635f fixup some building of sync message issues 2021-02-22 12:00:08 +11:00
Audric Ackermann
58cc6551e5 fix updates of message on message syncing 2021-02-22 09:58:29 +11:00
Audric Ackermann
5ab3680903 make OnionPath a singleton and build path on app Start only 2021-02-22 09:35:05 +11:00
Audric Ackermann
7a3a12ccdc Merge branch 'clearnet' into move-models-to-ts-2 2021-02-19 17:53:26 +11:00
Audric Ackermann
8716fbf495 improve sent message handling by setting the correct convoId at start 2021-02-19 17:47:54 +11:00
Audric Ackermann
8a800cf58c move the logic of handling when a message is sent to MessageSentHandler 2021-02-19 16:43:50 +11:00
Audric Ackermann
25e03eba35 fix lint 2021-02-19 15:13:43 +11:00
Audric Ackermann
3ee0ccfac8 remove the forceSave logic for a message, always insert or replace 2021-02-19 13:01:24 +11:00
Audric Ackermann
d844c5141e remove unprocessed from store. Nothing was stored in the store
it was simply as passthrough to the Data file.
No we directly call the data file instead
2021-02-19 10:35:11 +11:00
Audric Ackermann
3f43ae48ad WIP 2021-02-17 11:17:50 +11:00
Audric Ackermann
370158951a move events from MessageQueue to MessageSentHandler 2021-02-16 18:12:49 +11:00
Audric Ackermann
a34720501c update avatar on convo only if DL+decrypt is OK 2021-02-16 14:22:22 +11:00
Audric Ackermann
8ea9f02cec Move data.js to data.ts 2021-02-15 15:16:52 +11:00
Audric Ackermann
7b81c4213a
Merge clearnet 2021-02-12 14:08:11 +11:00
Audric Ackermann
0c1343cad5
add a way to share currently distributing keypair to added members 2021-02-12 11:00:22 +11:00
Audric Ackermann
78e7255cb8
send the keypair to added members if we are admin
and remove request encryption keypair handling
2021-02-11 16:40:05 +11:00
Audric Ackermann
ebf9714e49
remove MessageQueueInterface 2021-02-11 15:00:52 +11:00
Audric Ackermann
2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2 2021-02-11 14:45:09 +11:00
Audric Ackermann
a31c457c08
allow closedgroup new message to be sent to our other devices
also, do not drop it on the receiving side
2021-02-11 14:04:08 +11:00
Audric Ackermann
375c5ba1a8 add the request and reply of an encryptionKeyPair if needed 2021-02-10 17:45:11 +11:00
Audric Ackermann
ed84760f0e
add a tslint rule to forbid use of async without await 2021-02-09 17:00:54 +11:00
Audric Ackermann
36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 2021-02-09 15:54:34 +11:00
Audric Ackermann
df0b44db4c
Merge remote-tracking branch 'upstream/clearnet' into multi-device-v2 2021-02-09 13:46:06 +11:00
Audric Ackermann
ea2c4437a3
cleanup models with unused events
also, sort message from DB and on redux by sent_at or received_at when
not a public group
2021-02-09 11:40:32 +11:00
Audric Ackermann
20cf5dbf10
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 2021-02-08 17:27:32 +11:00
Audric Ackermann
b76ce0f2ff
update models to TS part2 2021-02-08 16:18:36 +11:00
Audric Ackermann
65ed81e980
enable explicit group updates on the sending side 2021-02-08 15:37:40 +11:00
Audric Ackermann
5a7c8ffa35
fix previews sent on next message if they are resolved too late 2021-02-08 15:35:56 +11:00
Audric Ackermann
89ea946b3f
disable sending of explicit group updates for now - only receiving is ON 2021-02-08 15:35:22 +11:00
Audric Ackermann
267a3e6bf6
disable closedgroup update groups for now 2021-02-08 15:34:01 +11:00
Audric Ackermann
ebd94ce15c
fix order of added new group in leftPane 2021-02-08 15:33:39 +11:00
Audric Ackermann
3b3378a2ee
finish explicit group updates 2021-02-08 15:33:16 +11:00
Audric Ackermann
7054385d4a
remove body pending loading of message > 2000.
Also remove the limit when sending text messages
2021-02-08 15:23:23 +11:00
Audric Ackermann
a51f95d28c
move models to TS part1 2021-02-08 15:20:47 +11:00
Audric Ackermann
aede96b69b
enable explicit group updates on the sending side 2021-02-08 14:12:44 +11:00
Audric Ackermann
b88ea110e8
Add multi device v2 support 2021-02-08 11:56:14 +11:00
Audric Ackermann
64737a89d7
add ConfigurationMessage 2021-02-04 11:53:37 +11:00
Audric Ackermann
fb9f615a11
Merge remote-tracking branch 'upstream/clearnet' into fix-explicit-updates-not-yet-sending 2021-02-02 10:25:52 +11:00
Audric Ackermann
859cbfbe36
Merge pull request #1466 from Bilb/fix-link-previews
fix previews sent on next message if they are resolved too late
2021-02-02 10:23:48 +11:00
Audric Ackermann
ab8aa0d982
disable sending of explicit group updates for now - only receiving is ON 2021-02-01 16:40:23 +11:00
Audric Ackermann
2462e12a04
Merge pull request #1461 from Bilb/explicit-group-updates
Explicit group updates
2021-02-01 15:45:11 +11:00
Audric Ackermann
cdd6fb61eb
fix previews sent on next message if they are resolved too late 2021-02-01 14:45:46 +11:00
Audric Ackermann
7048f81214
disable closedgroup update groups for now 2021-02-01 13:14:19 +11:00
Audric Ackermann
c06f710b3b
fix order of added new group in leftPane 2021-02-01 13:12:44 +11:00
Audric Ackermann
334da0a169
finish explicit group updates 2021-02-01 11:35:06 +11:00
Audric Ackermann
46fdebe3d7
Merge pull request #1459 from Bilb/improve-open-group-loading-speed
Improve open group loading speed
2021-01-29 11:43:41 +11:00
Audric Ackermann
0e25ab2874
WIP 2021-01-29 11:29:42 +11:00
Audric Ackermann
6e11c6db2e
remove all reference to closed group update v2 2021-01-28 12:06:51 +11:00
Audric Ackermann
999e6fc712
replace GroupUpdateV2 in proto to ClosedGroupControlMessage 2021-01-28 11:39:07 +11:00
Audric Ackermann
3d47d7d0e8
remove EbeddedContact components 2021-01-28 10:52:16 +11:00
Audric Ackermann
02fb5783a4
remove regionCode and PhoneNumber.ts 2021-01-28 09:46:15 +11:00
Audric Ackermann
c7d6e940ce speed up loading of messages by removing db call to fetch our pubkey 2021-01-27 18:09:46 +11:00
Audric Ackermann
e3a6e24898 remove body pending loading of message > 2000.
Also remove the limit when sending text messages
2021-01-27 15:26:30 +11:00
Audric Ackermann
ce8bc84de0
add way to add/remove moderators from the message click handler 2021-01-22 10:13:01 +11:00
Audric Ackermann
5c3cb0a165
make moderator dialogs the Session way 2021-01-21 17:49:14 +11:00
Audric Ackermann
a0703bc2f9
remove primary and secondary device separate status 2021-01-21 17:49:13 +11:00
Audric Ackermann
135fc3b366
remove prekeys 2021-01-21 17:49:07 +11:00
Audric Ackermann
fd18345c5a
remove handling of rss related things completely 2021-01-19 16:11:33 +11:00
Audric Ackermann
c0484207d1
Merge branch 'clearnet' into fix-ban-user 2021-01-19 15:44:29 +11:00
Audric Ackermann
21c3e4717e
Merge pull request #1434 from Bilb/remove-prekey
Remove prekeys message and Session managment.
2021-01-19 15:43:01 +11:00
Audric Ackermann
6dd9dde44f
increase closed group size limit to 100 2021-01-19 15:35:20 +11:00
Audric Ackermann
39c64b9fbf
toast adding moderator to remind that the user needs to be registered 2021-01-18 17:02:02 +11:00
Audric Ackermann
72c96ea998
remove most of the SessionProtocol unused stuff
- prekeys
- SessionCipher
- LokiCipher
- endSession and the reset Session logic
- what we called Sessionprotocol manager (to keep track of session with
everyone)
2021-01-18 10:58:34 +11:00
Audric Ackermann
979a9058e3
remove verified number - related features (partial) 2021-01-18 10:35:16 +11:00
Audric Ackermann
75b7788fa9
remove stuff related to web api 2021-01-15 10:56:49 +11:00
Audric Ackermann
f1d84177a0 fix expirationTimer updates closed group desktop to ios 2021-01-14 16:34:05 +11:00
Audric Ackermann
eb9828a3b7 fix tests 2021-01-14 10:44:15 +11:00
Audric Ackermann
6856c0e748
remove updateTextInputState not needed and add left to menu tests 2021-01-13 15:28:20 +11:00
Audric Ackermann
6cf838ade8
disallow remove of an admin from a closed group 2021-01-13 12:36:31 +11:00
Audric Ackermann
19f59ca41e
add some logs for message sending 2021-01-13 11:03:59 +11:00
Audric Ackermann
cbd0e63641
add admin dialog to warn him about leaving for v2 closed group 2021-01-13 11:02:22 +11:00
Audric Ackermann
d43ae09eb0
first working version of closed group v2 2021-01-12 16:56:21 +11:00
Audric Ackermann
9048913332
split conversation reducer for convo logic
also
- fix ordering of messages for open groups, when they are added
- fix the way the firstMessageOfSeries for just created clsoed groups
2021-01-07 10:51:20 +11:00
Audric Ackermann
2fe6b11e89
move ConversationController to typescript 2021-01-06 14:26:53 +11:00
Audric Ackermann
adf0d03d35
add test for the MessageEncrypter using Session protocol 2021-01-05 14:48:46 +11:00
Audric Ackermann
0a4cae4183
fix duplicates message for open groups 2020-12-17 15:07:32 +11:00
Audric Ackermann
2af4938ff2
fix SessionProtocol decrypt of messages with Android
also disable the old SessionRequest logic
2020-12-17 12:17:11 +11:00
Audric Ackermann
b0a229bf13 add Dialog on app start to ask to update SessionID 2020-12-16 16:35:30 +11:00
Audric Ackermann
1045bfeba8 add SessionProtocol wip 2020-12-16 13:56:29 +11:00
Audric Ackermann
cd3ec67099 add the encryptWithSessionProtocol method 2020-12-15 17:15:00 +11:00
Audric Ackermann
f28dfe5a94 use fallbacks for message even if we have a session with the device 2020-12-07 17:06:46 +11:00
Audric Ackermann
9fe87ca8c3
fix typing of MessageController 2020-12-02 16:23:58 +11:00
Audric Ackermann
4c0a988fe5
Move the metadata badges to use react functional components 2020-12-02 16:23:51 +11:00
Audric Ackermann
228e4ed662
move MessageController to typescript 2020-12-02 11:26:31 +11:00
Audric Ackermann
727261b36a
be sure to register outgoing message for medium groups when created 2020-12-01 17:14:43 +11:00
Audric Ackermann
60a4fcbfcc
small UI fixes for caption editor 2020-11-26 15:53:52 +11:00
Audric Ackermann
82b59f808d
no confirmation on message delete from the message detail view 2020-11-26 15:16:44 +11:00
Audric Ackermann
5e43210493
Merge branch 'clearnet' of github.com:loki-project/loki-messenger into react-refactor 2020-11-25 13:42:56 +11:00
Audric Ackermann
465c9dfa77
remove dirty hack used before we use the notify on PN
this was used to not trigger events when sending a control message
2020-11-25 13:25:59 +11:00
Audric Ackermann
80523a9a3e
rename MessageQueue event to be more easily searchable
success -> sendSuccess
fail -> sendFail
2020-11-25 12:26:42 +11:00
Audric Ackermann
cc049065da
do not use v3 for live.apns.getsession.org PN calls 2020-11-24 11:47:44 +11:00
Audric Ackermann
9f14924e65
push toast if gif size is too big 2020-11-23 17:05:41 +11:00
Audric Ackermann
da62ba6829
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-11-23 16:26:52 +11:00
Audric Ackermann
f2074f502a
Uniformize size of accepted attachment to 10MB
Some image files can be scaled automatically, so this size is not the
same for them, they will just be scaled down
2020-11-23 16:25:20 +11:00
Audric Ackermann
edd984e0f5
make quotes stay empty when there object isEmpty() 2020-11-19 11:56:34 +11:00
Audric Ackermann
b5af8eb215
Add Mentions with react-mentions 2020-11-18 15:27:13 +11:00
Audric Ackermann
828aa4413f
remove unused group_member_list component 2020-11-17 16:46:04 +11:00
Audric Ackermann
2f2eb2ad53
link back backbone conversation events to redux store 2020-11-13 17:17:48 +11:00
Audric Ackermann
f3430bdcb5
add toast on isBlocked, isKicked, ... for sending of messages 2020-11-12 14:39:37 +11:00
Audric Ackermann
30f93b2ad3
remove conversation stack 2020-11-11 10:01:17 +11:00
Audric Ackermann
190d597814
only trigger new msg on open group if we are still running 2020-11-10 17:33:44 +11:00
Audric Ackermann
c039c89a26
remove resetMessageSelection() as unused and cleanup toast 2020-11-10 16:15:27 +11:00
Maxim Shishmarev
27859b13aa Added an option to use v3/lsrpc endpoint for more compact (base64) file reponses 2020-11-09 14:25:24 +11:00
Audric Ackermann
8710b7a9e8
medium group: send existing expiretimer to joining members if set 2020-11-09 13:58:37 +11:00
Audric Ackermann
545eef4edb
include expireTimer in group invitation message so it does not reset it 2020-11-09 12:06:26 +11:00
Audric Ackermann
e613613416
show toast with react-toastify and make them a styled-component 2020-11-09 11:25:57 +11:00
Audric Ackermann
6fd8ea20c7
fix restoring of session after restore from seed 2020-11-06 14:44:04 +11:00
Audric Ackermann
0b4400837b
fix scroll to quoted message and contact display name of group updates 2020-11-04 16:55:52 +11:00
Audric Ackermann
940ad57f83
rework the way unread count works
we no longer refresh on each message read, only once the whole
conversation is read.
2020-10-30 16:02:18 +11:00
Audric Ackermann
13e02b5bf1
add staged link previews for everything from signal 2020-10-28 11:06:47 +11:00
Audric Ackermann
12bf46e09e
use pushToast through ToastUtils when it's a static toast content 2020-10-27 12:56:32 +11:00
Audric Ackermann
79eae4838d
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-10-27 09:59:23 +11:00
Audric Ackermann
17ac8c4343
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-10-27 09:14:08 +11:00
Audric Ackermann
55fa65fc31
override attachments name on upload 2020-10-27 09:13:29 +11:00
Audric Ackermann
5de2dea407
use .ok field on serverRequest to check for request success 2020-10-26 10:35:33 +11:00
Audric Ackermann
fe3cfb9e82
move all menu to react-contexify 2020-10-22 16:34:41 +11:00
Audric Ackermann
2b13321c23
remove completely send to proxy 2020-10-22 09:58:32 +11:00
Audric Ackermann
4c91d977ca
move token and submit challenge call to onion request 2020-10-22 09:56:44 +11:00
Maxim Shishmarev
61897df7dd Lint 2020-10-21 15:51:52 +11:00
Maxim Shishmarev
c5b2b64d7f Add onions-v2 support for fileserver requests 2020-10-21 14:08:12 +11:00
Maxim Shishmarev
692a0e8cff Optionally use v2 onions for snode requests 2020-10-21 14:08:12 +11:00
Audric Ackermann
b46ed237b3
allow empty message when they have attachments 2020-10-20 15:02:16 +11:00
Audric Ackermann
c5927cfc4b
focus composition box after adding an attachment 2020-10-20 14:31:10 +11:00
Audric Ackermann
363da7aa80
add back toast on attachment adding error 2020-10-20 14:07:48 +11:00
Audric Ackermann
026a1930ed
add a getOrThrow to ConversationController when we expect this convo 2020-10-15 17:19:49 +11:00
Audric Ackermann
144ae41529
add type for ConversationController, remove showStartConversation
and cleanup scss
2020-10-15 16:43:51 +11:00
Audric Ackermann
1a379d2466
add theme logic to switch between dark/light theme based on redux store 2020-10-15 10:07:38 +11:00
Audric Ackermann
6e07ee42f5
cleanup network status view and some UI constants 2020-10-13 13:57:43 +11:00
Audric Ackermann
4d991d3992
Merge branch 'clearnet' into react-refactor 2020-10-08 17:23:55 +11:00
Audric Ackermann
2f8f79c5d2
make message clearer when we try to reuse a keyIdx in the ratchet 2020-10-05 12:56:39 +11:00
Audric Ackermann
97eaf68085
clean getExistingSenderKeysForGroup as we don't need the diff anymore 2020-10-05 11:29:02 +11:00
Audric Ackermann
c0497e3df1
trigger senderKeyRequest if we get a DOMException on decryptGCM() 2020-10-05 11:16:13 +11:00
Audric Ackermann
05e682cdc2
enable back swarm polling when we get added back to a group 2020-10-05 10:53:09 +11:00
Audric Ackermann
cfb9e65f30
trigger new ratchet send on message sent success
send our new ratchet to all new members when we just sent a message
containing no senderKey in it.

an set but empty senderKey array should only be sent when a user left or
was removed.
2020-10-02 14:27:46 +10:00
Audric Ackermann
e0e0830d3b
remove all ratchet when needed to get fresh senderKey from members 2020-10-01 16:13:26 +10:00
Audric Ackermann
5d7d66f65a
fix bug making session request being sent for medium group create 2020-10-01 15:13:06 +10:00
Audric Ackermann
a80f9a5965
fix medium group to match mobile way 2020-10-01 15:12:51 +10:00
Audric Ackermann
06d0683ce5
WIP 2020-09-30 10:23:27 +10:00
Audric Ackermann
22afe50c05
make messageQueue handle medium group message in sendToGroup 2020-09-30 10:22:36 +10:00
Audric Ackermann
d4e9b43f0c
remove QUIT type of mediumgroupupdate 2020-09-30 10:14:19 +10:00
Audric Ackermann
53a14a0b60
add prefix to ExpirationTimerUpdateMessage for closed group too 2020-09-25 10:53:21 +10:00
Audric Ackermann
d12e0500af
mark node as bad if it returns difficulty 100 2020-09-23 11:43:47 +10:00
Audric Ackermann
3a876c7322
add notify to PN server on message sent 2020-09-21 12:26:23 +10:00
Audric Ackermann
514eb9ba98
fix pubkey regex for mobile medium groups 2020-09-17 19:46:06 +10:00
Audric Ackermann
215c964fab
fix padding for medium group 2020-09-17 19:36:58 +10:00
Audric Ackermann
8123508b51
fix avatar closed group and pubkey for medium mobile groups 2020-09-17 19:36:46 +10:00
Audric Ackermann
d6e8247016
Merge pull request #1339 from Bilb/add-back-copy-session-id
add back Copy Session ID but show it only for user context click
2020-09-15 16:42:34 +10:00
Audric Ackermann
cd1a940719
add back Copy Session ID but show it only for user context click 2020-09-15 10:32:16 +10:00
Audric Ackermann
ff1c554e8a
make MediumGroupChatMessage share impl with ClosedGroupChatMessage 2020-09-15 09:40:50 +10:00
Audric Ackermann
04063cd0fb
make medium group pubkey be in bytes rather than str 2020-09-15 09:04:10 +10:00
Audric Ackermann
7054268b14
use source from decoded content and not envelope on ssk 2020-09-14 12:15:22 +10:00
Audric Ackermann
84c7ce006b
fix ctx menu on repeated block/unblock 2020-09-09 11:16:33 +10:00
Audric Ackermann
d3badba681
hide reset session from menu when user is blocked 2020-09-09 10:48:26 +10:00
Audric Ackermann
c34edee180
Merge pull request #1321 from Bilb/use-created-at-server-timestamp
Fixes #1249
2020-09-08 15:15:01 +10:00
Audric Ackermann
1e446b0a81
fix order for open groups message which are out of sync 2020-09-08 09:37:51 +10:00
Audric Ackermann
7501d71542
fix polling logic on network errors #995 2020-09-07 14:17:59 +10:00
Audric Ackermann
0721d469db
increase timeout allowed for joining open group 2020-09-02 15:49:43 +10:00
Audric Ackermann
0e75510e5b
remove ttl unused settings and all translated key 2020-09-01 11:14:59 +10:00
Audric Ackermann
73e2250ca8
add submenu rtl support (disabled for now) 2020-08-31 14:53:17 +10:00
Audric Ackermann
5739d78ada
edit group editing title to match Android 2020-08-18 11:35:58 +10:00
Audric Ackermann
90fac8f75e
show group members => groupmember 2020-08-17 11:44:51 +10:00
Audric Ackermann
70b739d24f
update translation to match android - part 1 2020-08-17 11:36:25 +10:00
Audric Ackermann
ad4c024530
Merge remote-tracking branch 'upstream/clearnet' into make-cheap-translations 2020-08-14 14:31:33 +10:00
Audric Ackermann
13b28e565d
hide copy option for closed group 2020-08-14 11:25:54 +10:00
Audric Ackermann
d108630f22
add a toastUtils file and replace all pushToast calls in ts files 2020-08-14 10:56:22 +10:00
Audric Ackermann
e008dbd0d5
"leave {Closed|Open} Group" => "leave group" 2020-08-14 10:07:47 +10:00
Audric Ackermann
71004f04a2
add a getDeleteMenuItem and hide on open groups as
leave and delete messages does the same in fact
2020-08-13 16:45:11 +10:00
Audric Ackermann
cf3352d0af
add a timeout function to promiseUtils for attemptConnection 2020-08-13 15:30:44 +10:00
Audric Ackermann
3945c6b208
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-08-10 10:51:33 +10:00
Audric Ackermann
58dd064e93
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests 2020-08-07 10:00:37 +10:00
Audric Ackermann
3e56eb6133
add beta german translation copy pasted from android 2020-08-05 16:58:36 +10:00
Mikunj
c0fca99485 Disable multi device 2020-08-04 11:23:48 +10:00
Audric Ackermann
933eb73aa1
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests 2020-08-03 11:48:00 +10:00
Audric Ackermann
6d65c9cc0a
make sendMessage return -1 on fail rather than false 2020-07-31 11:37:59 +10:00
Audric Ackermann
44349079ab
fix delete of open group messages 2020-07-31 09:49:36 +10:00
Audric Ackermann
64dff64925
fix mentions notification displayname rather than pubkeys
* replace @pubkeys with their corresponding display name if found
* fix the display of the @ sign on the conversationListItem
2020-07-29 15:22:49 +10:00
Audric Ackermann
708a999ff6
fix caption for attachments when they are set 2020-07-29 12:07:06 +10:00
Maxim Shishmarev
d95dfdc04a
Merge pull request #1280 from msgmaxim/medium-group-fixes
Medium group protocol changes
2020-07-28 14:23:58 +10:00
Maxim Shishmarev
db05592400 Address review comments 2020-07-28 12:13:41 +10:00
Audric Ackermann
ad24ad28d6
Merge pull request #1284 from Bilb/fix-ttl-ugly-hack 2020-07-27 16:52:48 +10:00
Audric Ackermann
eb06356b26
Merge pull request #1277 from Bilb/fix-blocklist-handle 2020-07-27 16:52:40 +10:00
Audric Ackermann
8558764768
fix open group integration tests 2020-07-27 11:27:37 +10:00
Audric Ackermann
52cb50f063
make lokiPlainFetch return a SnodeResponse object 2020-07-27 10:59:29 +10:00
Audric Ackermann
38724d0992
filter convos to block sync by getting list from BlockedNumberController 2020-07-27 08:57:44 +10:00
Maxim Shishmarev
f1bc0ffc27 Fix export for file onions 2020-07-24 17:29:43 +10:00
Audric Ackermann
401c37c39e
make standardized menu, use them in ConversationHeader
and ConversationListItem
2020-07-24 16:40:44 +10:00
Audric Ackermann
394030b711
remove getDefaultTTL and use Constants values instead 2020-07-24 15:37:28 +10:00
Audric Ackermann
48edd431da
use constants rather than string for ttl 2020-07-24 15:29:33 +10:00
Audric Ackermann
467f96acac
substract 1 hour for control of ttl message so PN can ignore them 2020-07-24 14:48:56 +10:00
Audric Ackermann
ce6263dc21
share ContextMenu item tests for ConversationListeItem and ConversationHeader 2020-07-24 11:24:37 +10:00
Audric Ackermann
8105f0647a
make a few unit tests quicker by polling more aggressively on results 2020-07-23 16:49:53 +10:00
Audric Ackermann
cd516aab64
lint 2020-07-23 16:29:19 +10:00
Audric Ackermann
3e23039adb
do not sync blocked closed group as mobile is not ready yet 2020-07-23 16:15:34 +10:00
Maxim Shishmarev
cc43555cd2 Merge branch 'clearnet' into medium-group-fixes 2020-07-23 15:39:46 +10:00
Audric Ackermann
d2a4757061
trigger and handle blocked contacts/groups as a list on block/unblock 2020-07-23 10:53:24 +10:00
Maxim Shishmarev
87144336b7 Large refactor of medium groups. Fixes them for multidevice 2020-07-22 17:41:21 +10:00
Vincent
28a0d82ea2 Updating message recieving 2020-07-21 14:43:46 +10:00
Maxim Shishmarev
8f0d59f9b8 Fix not shuffling nodes requested for pubkey 2020-07-20 12:31:56 +10:00
Vincent
3591001ef1 audio component ui 2020-07-16 18:22:09 +10:00
Vincent
c26e20d33f css-loader 2020-07-16 16:39:35 +10:00
Audric Ackermann
c7b5fdf02d
Merge pull request #1246 from Bilb/accept-group-ids-from-mobile 2020-07-15 11:33:02 +10:00
Audric Ackermann
20a286d288
add comments about temporary fix with mobile group pubkeys regex 2020-07-15 11:17:05 +10:00
Audric Ackermann
edc34649a4
Merge pull request #1241 from Bilb/fix-our-profile-picture-change 2020-07-14 13:08:16 +10:00
Audric Ackermann
4e56ad2419
Merge pull request #1244 from Bilb/fix-sending-errors-handling 2020-07-14 13:08:00 +10:00
Audric Ackermann
f491158b3f
add the group id from mobile as valid pubkey key 2020-07-14 12:33:07 +10:00
Audric Ackermann
3fd260b793
enforce type of profileKey and signature on linking messages 2020-07-14 11:27:19 +10:00
Vincent
5216cc2c2e merge clearnet 2020-07-14 11:16:36 +10:00
Vincent
c020eddef6 constants-to-ts 2020-07-14 11:06:26 +10:00
Audric Ackermann
f641b9436b
fix our handling of snode sending errors so we have a real error shown
when a message fails to send because of it.

Also, fix the retry logic on the corresponding message
2020-07-14 08:55:26 +10:00
Maxim Shishmarev
1d1a62e683 Fix incorrectly syncing medium group chat messages 2020-07-13 18:16:22 +10:00
Vincent
fd746a475a ui polished and ttl constants 2020-07-13 14:08:18 +10:00
Maxim Shishmarev
d747249d4f Merge branch 'clearnet' into revive-medium-groups 2020-07-13 12:44:17 +10:00
Maxim Shishmarev
6351fc1d4c Lint 2020-07-13 12:40:03 +10:00
Maxim Shishmarev
f6223ce5ab Use message queue for medium group chat messages 2020-07-13 12:35:42 +10:00
Vincent
39dea3b1bc Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into blocked-fixes 2020-07-13 11:13:31 +10:00
Vincent
9b07c8fc8e outline-class 2020-07-13 10:09:41 +10:00
Audric Ackermann
a4fedaf75d
fix empty avatar being undefined rather than ''
building ClosedGroupUpdate message via ts makes it have an avatar
content with fields empty if we pass '' as avatar.

we wamt no avatar field at all
2020-07-13 09:07:52 +10:00
Maxim Shishmarev
237bd84b35 Fix medium group sending for single device users; protocol changes 2020-07-10 17:59:33 +10:00
Vincent
ca96992a44 Pukbeyified 2020-07-10 11:33:34 +10:00
Vincent
68f2a90f7c pubkeys-in-message-encryptor-init 2020-07-10 11:24:23 +10:00
Mikunj
646973e330 Made changes to how messages are sent.
Instead of blocking the message queue when we don't have a session, we instead just send out a session request and send the queued messages using fallback encryption.
This means that users will be able to message right away without having to wait.
The only down side is that all messages sent before sessions are established will be using the weaker encryption.

This change also means we have to detach session requests from envelope type (which is a good thing) and thus now a message is a session request if it contains a preKeyBundle.
2020-07-10 10:00:21 +10:00
Maxim Shishmarev
7724df25cc Fix incorrect handling of pow update 2020-07-09 18:11:40 +10:00
Audric Ackermann
f03d66de38
use active_at to show and sync real contacts from contact list 2020-07-09 16:09:30 +10:00
Audric Ackermann
4aa0667686
OpenGroup: get conversation from conversationController rather than appDotNetApi 2020-07-09 10:33:26 +10:00
Audric Ackermann
880e039652
handle grantSignature undefined 2020-07-09 10:28:10 +10:00
Audric Ackermann
7fe188417a
Merge pull request #1227 from Bilb/fix-1.0.9-interoperability
include verb and path on outgoing websocket message
2020-07-09 08:14:33 +10:00
Audric Ackermann
f8aa50546b
include verb and path on outgoing websocket message 2020-07-08 17:59:17 +10:00
Vincent
6cb05c3677 review-fixes 2020-07-08 15:36:59 +10:00
Vincent
4a13b1e6bb attemptConnection-complete 2020-07-08 15:25:18 +10:00
Vincent
baf3050b1d @params 2020-07-08 15:12:52 +10:00
Vincent
3a3d412542 linted 2020-07-08 14:37:25 +10:00
Vincent
e72970fdc7 load-conv-public 2020-07-08 12:14:46 +10:00
Vincent
a005aa8a2e onLoading join 2020-07-08 11:41:30 +10:00
Vincent
b05d2e6725 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into https-open-group 2020-07-08 11:40:53 +10:00
Audric Ackermann
d5cfcf9edc
Merge pull request #1223 from Bilb/various-closed-group-fixes
* fix display name and avatar to be shown when message is coming from a secondary device
* fix show of expiretimer in the group conversation when it is for it.
* fix a bug creating empty conversation when sync closed group message is received on secondary device
* trigger an expiretimer update message to all members when updating a group.
* trigger an expiretimer update message when sending back group details (after a requestGroupInfo)
2020-07-08 11:29:08 +10:00
Vincent
6111cb2d17 server-regex-tighten 2020-07-08 11:20:40 +10:00
Audric Ackermann
696fbd8d7a
address review 2020-07-08 11:14:54 +10:00
Vincent
f6ae5386e9 getting opengroup conversation 2020-07-08 10:59:20 +10:00
Maxim Shishmarev
a2b80a5e68 Address review comments 2020-07-08 10:57:24 +10:00
Vincent
ab966e600a OpenGrop joining 2020-07-08 10:19:51 +10:00
Audric Ackermann
178060e4d2
handle Uint8Array in protobuf.convertToTS() 2020-07-08 09:34:35 +10:00
Maxim Shishmarev
29fe64f5d5 Fix retrieving with pubkey object 2020-07-07 18:33:40 +10:00
Vincent
54209e98a8 propogate join channel erros 2020-07-07 18:20:39 +10:00
Vincent
39b41cb222 joining-open-groups 2020-07-07 17:46:50 +10:00
Maxim Shishmarev
ccc487528d Fix edkey extraction 2020-07-07 15:34:56 +10:00
Vincent
8484b9d3f6 regex-fiddling 2020-07-07 14:30:49 +10:00
Vincent
ea23df2986 OpenGroup strict SSL verification 2020-07-07 14:21:11 +10:00
Audric Ackermann
15b8600e25
fix display name and avatar not being updated when message from secondary 2020-07-07 13:30:25 +10:00
Vincent
bcad497c7f regex-for-http 2020-07-07 13:20:26 +10:00
Maxim Shishmarev
6919f53a45 Move constants to preload.js 2020-07-07 11:05:04 +10:00
Maxim Shishmarev
12f73e23f2 Move onion requests to typescript 2020-07-07 09:57:52 +10:00
Audric Ackermann
ed48818867
include old avatar and expireTimer on groupUpdate 2020-07-06 17:07:55 +10:00
Audric Ackermann
809b4d9461
Merge remote-tracking branch 'upstream/clearnet' into various-closed-group-fixes 2020-07-06 16:21:47 +10:00
Audric Ackermann
235ab0bfb3
create convo for both primary and secondary in receivemessage 2020-07-06 16:08:11 +10:00
Maxim Shishmarev
d5a98b8b47 Remove swarm nodes from conversations 2020-07-06 15:41:52 +10:00
Mikunj
8f82e7a442 Fix multi device pairing 2020-07-06 11:53:52 +10:00
Mikunj
669648d9cb Fix expire timer 2020-07-03 16:38:50 +10:00
Mikunj Varsani
416d5f69c0
Merge pull request #1211 from Mikunj/closed-group-fixes
Closed group fixes
2020-07-03 15:40:06 +10:00
Maxim Shishmarev
6a41aa1d88
Merge pull request #1210 from msgmaxim/fix-some-tests
Stub out swarm polling
2020-07-03 15:18:13 +10:00
Mikunj
2d5230715f Merge branch 'clearnet' into closed-group-fixes 2020-07-03 14:06:12 +10:00
Maxim Shishmarev
9cdb7710ec Stub out swarm polling 2020-07-03 14:01:46 +10:00
Mikunj
c422c9e2ad Lint 2020-07-03 13:59:14 +10:00
Mikunj
fd547941d6 Fix sync message issue 2020-07-03 13:57:08 +10:00
Mikunj
8d11660b13 Fix attachments 2020-07-03 10:08:24 +10:00
Maxim Shishmarev
7e737a3ccd Merge branch 'clearnet' into refactor-polling 2020-07-02 15:57:47 +10:00
Maxim Shishmarev
114f6d083f Fix pubkey comparison 2020-07-02 15:42:36 +10:00
Maxim Shishmarev
7dd9469074 Further improve imports 2020-07-02 15:02:32 +10:00
Audric Ackermann
7c89b291de
Merge pull request #1205 from Bilb/handle-message-sending-events 2020-07-02 05:54:54 +01:00
Maxim Shishmarev
b31b6bb912 Lint 2020-07-02 12:47:31 +10:00
Maxim Shishmarev
255c7ada68 More clean up in message_receiver.js 2020-07-02 12:32:13 +10:00
Maxim Shishmarev
6fcc1f7ae4 Merge branch 'clearnet' into refactor-polling 2020-07-02 12:07:37 +10:00
Audric Ackermann
0474e84b19
fix profileKey sharing and avatar 2020-07-02 09:49:12 +10:00
Maxim Shishmarev
468ad9f71d Add more type annotations 2020-07-01 16:20:54 +10:00
Vincent
d1a77b82ee rm tmp file 2020-07-01 12:55:34 +10:00
Vincent
7498a255a2 utils compatiblity merger 2020-07-01 12:26:49 +10:00
Audric Ackermann
c95bf57b28
Merge remote-tracking branch 'upstream/clearnet' into handle-message-sending-events 2020-07-01 11:44:59 +10:00
Maxim Shishmarev
6295e4206d Clean up imports 2020-07-01 11:23:33 +10:00
Mikunj
7b355dae78 Fix grunt 2020-07-01 08:35:07 +10:00
Maxim Shishmarev
0904e7a8ca Refactor from message polling to content message handling 2020-06-30 18:10:35 +10:00
Mikunj
4a3188bbf9 minor fixes 2020-06-30 16:03:35 +10:00
Mikunj
d4dc8aa2ed remove SyncMessageUtils.from 2020-06-30 15:28:53 +10:00
Mikunj
a972c328c7 Change how sync messages are handled 2020-06-30 14:52:09 +10:00
Mikunj
347a1e5582 Add avatar uploading to attachment utils 2020-06-30 09:38:09 +10:00
Audric Ackermann
c419ff9cd2
include display name in outgoing messages 2020-06-29 15:37:27 +10:00
Mikunj
c589f4a4af Finish hooking up attachments 2020-06-29 14:17:05 +10:00
Mikunj
fbbbadada5 Merge branch 'clearnet' into attachments 2020-06-29 13:14:35 +10:00
Vincent
fadbb37022 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests 2020-06-29 13:14:17 +10:00
Audric Ackermann
5f2990d088
Merge pull request #1197 from Bilb/other-messages-new-sending 2020-06-29 02:34:29 +01:00
Vincent
2d0409f9c8 Merge branch 'gorup-tests' into utils-tests 2020-06-29 09:11:47 +10:00
Vincent
e2e867d5c1 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests 2020-06-29 08:40:10 +10:00
Vincent
a6433fe5dd merge 2020-06-29 08:29:39 +10:00
Mikunj
13811233b6 Add session request expiry checks 2020-06-26 14:36:16 +10:00
Audric Ackermann
9941c12586
finish adding mediumGroupUpdates 2020-06-26 13:53:33 +10:00
Vincent
c3af41cb80 merge 2020-06-26 13:17:35 +10:00
Vincent
f4fdd42ef3 string-tests 2020-06-26 12:48:06 +10:00
Mikunj
366ccdf97d Add more functions 2020-06-26 12:33:47 +10:00
Mikunj
b69ad7db16 Add attachment util 2020-06-26 11:58:05 +10:00
Audric Ackermann
39bad87a18
updateMediumGroup replaced with new pipeline 2020-06-26 11:08:27 +10:00
Audric Ackermann
a43abfd436
move groupContextType to sub classes of Closedgroup 2020-06-26 10:56:53 +10:00
Vincent
32015eeab6 ptests 2020-06-26 03:21:23 +10:00
Audric Ackermann
cae608fd01
drop typing message for public groups and fix opengroup sending 2020-06-25 15:38:00 +10:00
Audric Ackermann
b07b195102
Merge remote-tracking branch 'upstream/clearnet' into other-messages-new-sending 2020-06-25 13:26:33 +10:00
Audric Ackermann
3b40837ffc
address Pr review 2020-06-25 12:35:02 +10:00
Audric Ackermann
cd79b5051c
move more logic to build sync message in ts for ContactSync and GroupSync 2020-06-25 12:21:12 +10:00
Mikunj
fb53f9ff36 Fix message queue 2020-06-25 12:13:53 +10:00
Audric Ackermann
fea75de3fe
make the sessionEstablishedMessage nullMessage have some random content 2020-06-25 09:49:15 +10:00
Audric Ackermann
d114b6c130
add verifierSyncMesage and syncReadMessages 2020-06-25 09:48:00 +10:00
Audric Ackermann
655cc0575e
add sync of closed groups/open groups/ contacts with new pipeline 2020-06-24 17:54:56 +10:00
Audric Ackermann
aee7428282
remove non used function in session from sendMessage.js 2020-06-24 15:04:29 +10:00
Mikunj Varsani
006b5760c6
Merge pull request #1192 from Mikunj/send-to-group
Handle typing and expiration messages when sending to group
2020-06-24 15:02:33 +10:00
Mikunj
b52544e6ba Fix imports 2020-06-24 14:28:32 +10:00
Mikunj
212b002c62 Fix typo 2020-06-24 14:25:34 +10:00
Mikunj
c2c56bb9b0 Handle typing and expiration messages when sending to group 2020-06-24 13:05:12 +10:00
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