Commit Graph

928 Commits (7763baba7a6ed341b05396e7bb26de00d7c17a58)

Author SHA1 Message Date
Mikunj 663d2b0bc6 Merge branch 'clearnet' into revert-1051-revert-1033-package-cleanup 5 years ago
Ryan Tharp f632a87b05
Merge pull request #1057 from loki-project/neuroscr-patch-2
open group api - put integration code under guard
5 years ago
Ryan Tharp 3553edcefc
lint 5 years ago
Ryan Tharp 70c4b9b3c7
lint 5 years ago
Ryan Tharp b517ad5286
put integration code under guard 5 years ago
Ryan Tharp 1ee2088343
Fix integration tests slipping into release
Per Mikunj
5 years ago
Mikunj Varsani 24a3e05154
Revert "Revert "Clean up unused dependencies."" 5 years ago
Vince 5ff7476359
Revert "Clean up unused dependencies." 5 years ago
Vince 6d591d956d
Merge pull request #1033 from Mikunj/package-cleanup
Clean up unused dependencies.
5 years ago
Maxim Shishmarev 804b4e54ac
Merge pull request #1041 from msgmaxim/lns
API implementation for LNS
5 years ago
Maxim Shishmarev 932ea23ceb API implementation for LNS 5 years ago
Ryan Tharp 9ade8cbb1e using undefined instead of false 5 years ago
Ryan Tharp 55acf4c24f make log less confusing 5 years ago
Ryan Tharp 62169e74f6 clear refreshRandomPoolPromise lock so you can refresh your randomPool, handle edge case if not enough snodes in randomPool for guards 5 years ago
Ryan Tharp c5573cc422 handle edgecase where there's less than 2 snodes in the randomPool (and it wouldn't trigger a refresh), log style, better warning if sendToProxy returns false 5 years ago
Ryan Tharp a2b1c2e8f6 lint 5 years ago
Ryan Tharp 4384229b4c log when _retrieveNextMessages's call to lokiRpc fails 5 years ago
Ryan Tharp 2a7ebe6696 don't say it's sent when it's not 5 years ago
Ryan Tharp 4c870d4b74 improve loki tld host checking, fix proxyFetch calling sendToProxy so tokens can be fetched 5 years ago
Mikunj b16da2c5f5 Linting 5 years ago
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.
5 years ago
Mikunj 828444aadc Linting 5 years ago
Mikunj e875ba2527 remove got.
Fix session IDs not being redacted in logs.
5 years ago
Mikunj a9555e8439 Linting 5 years ago
Mikunj 496afa85cb Remove libsodium-wrapper.
Remove LokiSnodeChannel as we weren't using it.
5 years ago
Ryan Tharp 75ef07048a make sure retries is set 5 years ago
Ryan Tharp dcfae3bedc improve user UX since we shouldn't have to wait on startup 5 years ago
Ryan Tharp a7981b1645 add some notes 5 years ago
Ryan Tharp 6fdde32948 convert reduce back to for...of loop per Maxim, markRandomNodeUnreachable() make handle edge removal cases and optimize snode lookup 5 years ago
Ryan Tharp 055ba2aa66 fix bug with missing ciphertext in log msg, remove unneeded space from log messages 5 years ago
Ryan Tharp ae9bcd45c2 only be picky about file uploads 5 years ago
Ryan Tharp 8ceb47823f fix logging style 5 years ago
Ryan Tharp 40951f0579 this.versionsRetrieved, handle ECONNREFUSED as bad otherwise retry in 1s, randomize list of snodes, only report status every 10% 5 years ago
Ryan Tharp c8b097c60e clean up logging a bit 5 years ago
Ryan Tharp 586aa877da change delay to 10s retry 5 years ago
Ryan Tharp 91b254d355 versionMap reverse lookup, markRandomNodeUnreachable removes from versionPools now, lint 5 years ago
Ryan Tharp 330b2b1b16 sort random pool into versions, getRandomProxySnodeAddress to use 2.0.2 or newer versions 5 years ago
Ryan Tharp fea679fe79 sendToProxy use getRandomProxySnodeAddress, retry with options 5 years ago
Maxim Shishmarev a91d925384
Merge pull request #1000 from msgmaxim/onion-requests
Client-side implementation for onion requests
5 years ago
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>
5 years ago
Maxim Shishmarev d9759bb40a Explicitly throw on error 5 years ago
Maxim Shishmarev 0221e7b8c0 fix linter warnings 5 years ago
Maxim Shishmarev f2ef69f00d Handle timeouts in guard testing; address some review comments 5 years ago
Maxim Shishmarev b786df8045 Remove limit on requested nodes 5 years ago
Maxim Shishmarev 3a746109ea Path building for onion requests 5 years ago
Maxim Shishmarev a9e6d863c3 Disable long-polling 5 years ago
Ryan Tharp 57b2840ed8 serverRequest: fix retry, fix note 5 years ago
Ryan Tharp 7a0e972ca4 refactor getRandomPoolLength out of markRandomNodeUnreachable 5 years ago
Ryan Tharp 8bf77ce44f collapse difficulty branching 5 years ago
Ryan Tharp d15445a1e0 don't create unneeded variables 5 years ago