Commit graph

508 commits

Author SHA1 Message Date
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 02fb5783a4
remove regionCode and PhoneNumber.ts 2021-01-28 09:46:15 +11:00
Audric Ackermann 43ec14e741 Fix the password length limit when not setting a new password
Relates #1446
2021-01-27 11:00:32 +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 135fc3b366
remove prekeys 2021-01-21 17:49:07 +11:00
Audric Ackermann c0484207d1
Merge branch 'clearnet' into fix-ban-user 2021-01-19 15:44:29 +11:00
Audric Ackermann 6dd9dde44f
increase closed group size limit to 100 2021-01-19 15:35:20 +11:00
Audric Ackermann 75b7788fa9
remove stuff related to web api 2021-01-15 10:56:49 +11:00
Audric Ackermann d43ae09eb0
first working version of closed group v2 2021-01-12 16:56:21 +11:00
Audric Ackermann 2fe6b11e89
move ConversationController to typescript 2021-01-06 14:26:53 +11:00
Audric Ackermann cf25e89a14 cleanup unused code 2020-12-15 17:14:18 +11:00
Audric Ackermann 3df0a425de
remove permissions popup window and related stuff 2020-12-09 11:35:31 +11:00
Audric Ackermann 228e4ed662
move MessageController to typescript 2020-12-02 11:26:31 +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 2ec337dd31
Add back ability to edit caption before sending attachments 2020-11-24 16:12:28 +11:00
Audric Ackermann f673589c56
add types for blueimp-load-image 2020-11-24 13:19:21 +11:00
Audric Ackermann c736023c88
enable file onion request v2 in lokiFeatureFlags 2020-11-24 09:05:45 +11:00
Audric Ackermann da62ba6829
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-11-23 16:26:52 +11:00
Audric Ackermann f8f15cb9f7
fix remove message for public groups 2020-11-19 13:26:59 +11:00
Audric Ackermann 2f2eb2ad53
link back backbone conversation events to redux store 2020-11-13 17:17:48 +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 94b445983d
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-11-04 10:31:23 +11:00
Audric Ackermann 1f2c01722a
move to new identity key mechanism
now we do as followed:
• Generate 16 bytes of random data
• Add 16 bytes of zeros
• Use the 16 bytes of random + 16 bytes of zeros to generate an ED25519 key pair
• Convert the ED25519 key pair to an X25519 key pair

All of this is happening with libsodiumm called over IPC
2020-10-29 13:36:40 +11:00
Audric Ackermann f5818817e9
remove references to old emoji-panel package 2020-10-27 14:32:59 +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 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 692a0e8cff Optionally use v2 onions for snode requests 2020-10-21 14:08:12 +11:00
Audric Ackermann 4d991d3992
Merge branch 'clearnet' into react-refactor 2020-10-08 17:23:55 +11:00
Audric Ackermann c7e54c4257
make attachment download use onion routing 2020-10-08 15:36:57 +11:00
Audric Ackermann 1b6629d818
enable ssk for all ENV by default 2020-09-28 13:16:35 +10:00
Audric Ackermann c052b1a2ec
update group size limit to 20 now that those are ssk groups
Also removed removed description while creating a medium group as it was
removed on mobile
2020-09-25 09:35:39 +10:00
Audric Ackermann 5961e141c1
enable senderkeys feature flags (and so medium groups) 2020-09-25 09:10:12 +10:00
Audric Ackermann e678895d17
undo enable ssk groups 2020-09-22 08:59:58 +10:00
Audric Ackermann 3a876c7322
add notify to PN server on message sent 2020-09-21 12:26:23 +10:00
Audric Ackermann dafe8a80ab
shortcut newReceiver when calling dataMessage exported functions 2020-09-02 12:07:44 +10:00
Audric Ackermann fec3a0f643
remove install_view.js 2020-08-17 14:03:51 +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 fc664a2580
show a toast on secondary device forced unlink 2020-08-06 14:23:38 +10:00
Mikunj 49b994367d Remove multi device data.
Force wipe secondary devices.
2020-08-04 11:56:15 +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 c12c3b5f64
move stub of integration tests to typescript 2020-08-03 11:25:06 +10:00
Audric Ackermann e806e912a3
move password_utils.js to typescript 2020-07-30 11:07:36 +10:00
Audric Ackermann e2a42d1b61
add stubbing of messageQueue in window from ts tests 2020-07-29 11:25:36 +10:00
Audric Ackermann ef0bbf897d
enable onion file server by default 2020-07-27 09:51:46 +10:00
Vincent 707200718d Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into refactor-ts-react 2020-07-17 16:37:05 +10:00
Vincent c26e20d33f css-loader 2020-07-16 16:39:35 +10:00
Mikunj 9e14615cd2 Remove RSS Feeds 2020-07-16 13:39:40 +10:00
Vincent 54b7d9a21b Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into refactor-ts-react 2020-07-16 11:57:42 +10:00
Maxim Shishmarev 237bd84b35 Fix medium group sending for single device users; protocol changes 2020-07-10 17:59:33 +10:00
Vincent 6078be1657 revive-ts-refactor 2020-07-08 17:12:34 +10:00
Vincent 83528f4b8d Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into refactor-ts-react 2020-07-08 16:42:30 +10:00
Maxim Shishmarev ae35626b35
Merge pull request #1221 from msgmaxim/ts-onion-requests
Move onion requests to typescript
2020-07-07 16:01:19 +10:00
Mikunj Varsani f11e0f2cd0
Merge pull request #1222 from Mikunj/blocking
Fix up Blocking
2020-07-07 15:51:59 +10:00
Maxim Shishmarev 6919f53a45 Move constants to preload.js 2020-07-07 11:05:04 +10:00
Mikunj aa75205bbd Move BlockedNumberController to ts 2020-07-07 10:24:24 +10:00
Maxim Shishmarev 12f73e23f2 Move onion requests to typescript 2020-07-07 09:57:52 +10:00
Vincent 4c48c9f6d6 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into closed-group-fixes 2020-07-07 09:50:08 +10:00
Maxim Shishmarev d5a98b8b47 Remove swarm nodes from conversations 2020-07-06 15:41:52 +10:00
Vincent 6e1f3fdc75 linked-devices-limit 2020-07-06 14:19:13 +10:00
Maxim Shishmarev 9cdb7710ec Stub out swarm polling 2020-07-03 14:01:46 +10:00
Maxim Shishmarev 0904e7a8ca Refactor from message polling to content message handling 2020-06-30 18:10:35 +10:00
Mikunj ae2b8334e0 Replace bytebuffer component 2020-06-18 10:49:59 +10:00
Maxim Shishmarev 8ca7b8cfb4 Message receiving refactor: handleDataMessage onwards 2020-06-12 18:08:44 +10:00
Audric Ackermann d7e9d6cfb8
move SESSION_REQUEST processing to handleSessionRequestMessage() 2020-06-12 08:40:35 +10:00
Audric Ackermann d1518f8233
add new handling of session request message 2020-06-11 11:43:58 +10:00
Mikunj 9b855a11e1 Added MessageSender tests 2020-06-09 12:30:19 +10:00
Mikunj 3ea0689d2f Linting 2020-06-05 13:07:11 +10:00
Mikunj e6139a5463 Merge branch 'clearnet' into message-sending-refactor 2020-06-05 13:05:23 +10:00
Audric Ackermann 1b39992e4a
enable senderKey during integration test 2020-06-04 09:17:45 +10:00
Audric Ackermann 73e15250d7
Merge remote-tracking branch 'upstream/clearnet' into integration-test-logs-rebased 2020-06-03 15:56:48 +10:00
Audric Ackermann a656e3ba3f
add env variable to enable message_logs 2020-06-03 15:35:11 +10:00
Mikunj 4985fbae65 Increase onion request hops to 3 2020-06-03 15:26:27 +10:00
Maxim Shishmarev ab2aa7669f Add sender key feature flag 2020-05-29 17:49:23 +10:00
Maxim Shishmarev fcadcd780e More integration tests for medium groups 2020-05-29 17:48:57 +10:00
Vincent 07e7afeb31 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into lns-map 2020-05-28 15:40:55 +10:00
Audric Ackermann 64fca28aa8
Merge remote-tracking branch 'upstream/clearnet' into integration-test-logs-rebased 2020-05-28 08:58:48 +10:00
Ryan Tharp e69828d490
Merge pull request #1100 from neuroscr/fileonion
File server onion routing support
2020-05-26 22:19:48 -07:00
Ryan Tharp 78991416f1 put file server onion requests behind a feature flag 2020-05-26 22:16:04 -07:00
Audric Ackermann e399b9b65b
lint 2020-05-26 17:36:25 +10:00
Audric Ackermann a5ff0f0c08
test: no need to stub fileserver. start it locally 2020-05-26 17:28:43 +10:00
Audric Ackermann 5e8504dab5
test-integration make all calls stubbed by default 2020-05-26 17:28:41 +10:00
Audric Ackermann 1144609c2a
test-integration make all calls stubbed by default. fix a few bugs with stubbed server 2020-05-26 17:28:40 +10:00
Audric Ackermann 81cb1122f8
remove window.getMessageTTL 2020-05-22 17:49:48 +10:00
Audric Ackermann f46c885fdf
merge fix-closed-group to clearnet 2020-05-15 12:53:49 +10:00
Maxim Shishmarev debb922521 Medium groups with sender keys essentials 2020-05-04 13:29:28 +10:00
Vincent cf05d4ff6c revivify 2020-04-24 12:18:43 +10:00
Vincent 2fde4d7e80 messages.json fixup 2020-04-22 17:19:29 +10:00
Vincent d78a49d689 Constants 2020-04-22 17:10:41 +10:00
Audric Ackermann 875c128d2a
remove useSealedSender feature as this is default now 2020-04-20 16:33:24 +10:00
Ryan Tharp 61390ac288
Merge pull request #1083 from Bilb/sealed-sender-integration-test
enable sealed sender during integration-tests
2020-04-19 23:15:34 -07:00
Ryan Tharp 06e1a0eec3 window.lokiFeatureFlags.onionRequestPaths => onionRequestHops, needPaths => nodesNeededPerPaths 2020-04-19 23:03:34 -07:00
Ryan Tharp 203da4544a add window.lokiFeatureFlags.onionRequestPaths and turn on onion_requests using one hop 2020-04-19 22:23:51 -07:00
Audric Ackermann 08cafa36c0
enable sealed sender during integration-tests 2020-04-20 11:52:41 +10:00
Vincent 494e1222a6 Session resetting 2020-04-06 17:42:57 +10:00
Vincent d09dc92e3d Disabled archiving 2020-04-06 16:42:19 +10:00
Vincent 6cda163b27 upgrade typescript 2020-04-06 13:36:15 +10:00
Mikunj Varsani 24a3e05154
Revert "Revert "Clean up unused dependencies."" 2020-04-03 16:41:53 +11:00
Vince 5ff7476359
Revert "Clean up unused dependencies." 2020-04-03 16:20:49 +11:00
Vince 6d591d956d
Merge pull request #1033 from Mikunj/package-cleanup
Clean up unused dependencies.
2020-04-03 16:13:23 +11:00
Maxim Shishmarev 804b4e54ac
Merge pull request #1041 from msgmaxim/lns
API implementation for LNS
2020-04-02 17:25:04 +11:00
Vince 9718c42c11
Merge pull request #1038 from Bilb/fix-integration-test
fix integration tests
2020-04-02 17:06:09 +11:00
Maxim Shishmarev 932ea23ceb API implementation for LNS 2020-04-02 13:35:31 +11:00
Audric Ackermann 5f42eb8212
fix integration tests 2020-04-01 10:18:11 +11:00
Mikunj 9d2417c2f6 Removed proxy-agent and web-socket.
Trimmed down web_api.js to most basic functions we are using. This needs to be completely removed in the future.
2020-03-31 13:24:06 +11:00
Mikunj e875ba2527 remove got.
Fix session IDs not being redacted in logs.
2020-03-31 12:14:26 +11:00
Mikunj 09f1e635c8 Fix theme setting not being send back to main.js 2020-03-31 12:11:03 +11:00
Mikunj d671ce0055 Remove phone number libraries 2020-03-31 10:44:00 +11:00
Audric Ackermann 9ff16d7e60
move to electron spellchecker 2020-03-27 17:25:59 +11:00
Mikunj 496afa85cb Remove libsodium-wrapper.
Remove LokiSnodeChannel as we weren't using it.
2020-03-27 15:51:03 +11:00
Mikunj 0cccc70b9b Fix integration test running on the wrong environment 2020-03-27 09:09:41 +11:00
Mikunj 6d87904d18 Clean up config files.
Removed unused scripts.
Removed unused files.
2020-03-27 09:09:41 +11:00
Audric Ackermann 7de40e9ef7
fix yarn test for CI 2020-03-26 14:47:27 +11:00
Maxim Shishmarev a91d925384
Merge pull request #1000 from msgmaxim/onion-requests
Client-side implementation for onion requests
2020-03-25 15:52:05 +11:00
Vince 60d1c767d6
Merge pull request #1005 from vincentbavitz/password-len
Password paste control on MAX_PASSWORD_LEN
2020-03-25 15:03:16 +11:00
Vincent d6a48b9f6d Password paste 2020-03-25 14:16:45 +11:00
Maxim Shishmarev 12b5eadaa1 disable onion requests by default for now 2020-03-25 12:12:41 +11:00
Audric Ackermann 9ddda73ca2
Integration tests (#975)
* add first integration test Session

Checking window title
Checking window count
Can restore from seed

* FIXME torevert once found why this crash on app close

* [test] add join valid open group test

* [test] validate cannot join two times the same open group

* [test] move common things to common.js

* [test] move tests to separate files

* [test] clean

* [test] add send message to open group test

* [test] lint

* [test] rename hooks -> common

* [test] add 15s delay before considering test as slow

* upgrade electron 8.0.3 and spectron 10.0.0

* [test] signin from seed: validate pubkey

* Replace spellchecker in favor of typo-js

* [test] refactor common calls to common.js

* [test] add two different pubkey, mnemonic and displayname

* [test] FIXME unsafe eval needed for now

* [test] add: add friends test

* [test] working multi instance tests

* [test] FIXME disable snodeproxy

* [test] update yarn.lock

* [test] make tests more robust with restart from scratch each test

* [test] add link of two devices test and hard rm of apps before start (rm -r)

* remove unused file

* [test] lint

* [test] add registration from generated pubkey test

* [test] add beginning of network stub

* [test] stub "token" endpoint

* [test] add test of one message on pub group pull

* [test] add starting port randomize. looks to help for some bad start with multi instance

* [test] add stub for one to one chats (sessions)

* [test] clean code

* [test] finish add friend test and stub snode server

* [test] stub calls during link device test

* [test] add a flag to show some logs on stubbed snode

* [test] finish link of two device test. check both pubkey matches

* [test] add and use function to wrap erase+start+login+stub app

* [test] add method to login as friend and closed group test&messages

* Revert "[test] FIXME unsafe eval needed for now"

This reverts commit de5322fdae6cdab8e3b9bd9a52b7d172c9bc2d26.

* [test] apply review

* [test] fix lint

* [test] fix existing test with new spectron version

* [test] fix lint

* [test] refactor page objects

* [test] add delete account test

* [test] add unlink of two device test

* [test] make tiny waitForExists -> isExisting

* [test] add checks of link new device buttons

* upgrade fs-extra@9.0.0

* address pr review

* [test] fix spell_check test

Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
2020-03-25 11:42:53 +11:00
Vincent d8a12aab0f conv tinkering 2020-03-25 10:01:36 +11:00
Maxim Shishmarev 0221e7b8c0 fix linter warnings 2020-03-24 18:32:00 +11:00
Maxim Shishmarev 3a746109ea Path building for onion requests 2020-03-24 18:25:31 +11:00
Vincent f599c28470 organisation 2020-03-19 09:48:16 +11:00
Vincent 9a6aafe99c Pull from clearnet 2020-03-13 11:44:00 +11:00
Vincent 7235ccff88 Emoji quick styling 2020-03-13 11:10:27 +11:00
Vincent 19a5571536 Protobuf init for attachments 2020-03-12 14:11:15 +11:00
Mikunj d31feed2c0 Review fixes 2020-03-10 14:58:44 +11:00
Mikunj 86b427cc4d Lint 2020-03-10 14:30:24 +11:00
Mikunj d10a8f0a6f Added setting to disable checking for auto updates. 2020-03-10 14:22:07 +11:00
Mikunj d5bb069207 Cleanup unused functions 2020-03-10 11:27:42 +11:00
Mikunj 6767f71a6b Make getMediaPermissions synchronous 2020-03-10 10:49:07 +11:00
Mikunj eeb6257526 Remove settings view 2020-03-10 10:24:23 +11:00
Vincent bf749b4e0b Play recording init 2020-03-05 17:03:22 +11:00
Vincent 2dc5885c88 Microphone timer 2020-03-05 10:43:48 +11:00
Mikunj Varsani 053b31ad38
Merge pull request #938 from Mikunj/github-actions
GitHub actions Part 2
2020-03-03 08:32:59 +11:00
Vince 67e3846787
Merge pull request #905 from jian10au/scaleslider
Zoom factor slider
2020-03-02 11:48:43 +11:00
Mikunj b7a1c5fd5a Remove old CI files 2020-02-28 14:54:36 +11:00
Mikunj a09e370e1d Added testing on pull request
Disable proxy in tests.
2020-02-28 14:51:09 +11:00
Vincent 548db7150d Start message selection reactification 2020-02-28 09:49:03 +11:00
Vincent 5d11ef1457 Header props 2020-02-27 10:01:18 +11:00
Vincent a5905536fa Onload scroll to unread 2020-02-26 15:39:02 +11:00
Brian Jian Zhao ccb470207a use storage instead of component state to store the zoom setting 2020-02-26 15:08:41 +11:00
Vincent 8a609efffe Scrolling stuff 2020-02-26 14:23:19 +11:00
Brian Jian Zhao 203d314254 fix the slider bug 2020-02-26 13:30:56 +11:00
Brian Jian Zhao 23da1831c2 removed unnecessary comments after review 2020-02-26 11:54:44 +11:00
Audric Ackermann f5b3eb394c
enable notifications after 10seconds of start or reconnect 2020-02-25 16:08:56 +11:00
Vincent 752ee8a614 Message conditional rendering 2020-02-25 15:20:34 +11:00
Brian Jian Zhao cb7289d3d8 working but buggy 2020-02-21 10:37:58 +11:00