Commit Graph

1092 Commits (9e14615cd2383c5c48afcab3e9b9691f21501ddf)

Author SHA1 Message Date
Ryan Tharp 40ebc508fc only show devs the token 5 years ago
Ryan Tharp 6dca83a972 return which snode was used to send/storage message, pass fetchHashes to getSwarmNodesForPubKey, indicate if we were requested to be stopped or not, log level adjustments 5 years ago
Ryan Tharp b3278a4edf handle timestamp errors better 5 years ago
Ryan Tharp adcc1e186a firstTrue return the return truish value given otherwise false 5 years ago
Ryan Tharp 60abea1454 typo and validAuthorisations bug fix 5 years ago
Ryan Tharp 73b6401097 additional lint-full 5 years ago
Ryan Tharp 3f5a667989 remove separate version pool vars, loki_primitive refactor, make sure _getAllVerionsForRandomSnodePool can't stack, exception clean up, findMatchingSnode refactor, getSwarmNodesForPubKey() now loads the lasthash, getNodesMinVersion is no longer async, _getSnodesForPubkey no longer takes a snode 5 years ago
Ryan Tharp 9927eab539 more loki_primitive unification, remove unneeded trace 5 years ago
Ryan Tharp e1ff1c709b lint 5 years ago
Ryan Tharp 6c48ee7e6d lint 5 years ago
Ryan Tharp 53a624ff1d loki_primitives refactor, pass swarmPool into _openRetrieveConnection, _openSendConnection now returns the snode it used, refreshSendingSwarm() now uses lokiSnodeAPI.refreshSwarmNodesForPubKey, bump MAX_ACCEPTABLE_FAILURES from 1 to 10 to make sure we retry 5 years ago
Ryan Tharp bee436ebbb 2.0.2-3 loki-storage support: handle 504, adjust log level/logging/notes 5 years ago
Mikunj 663d2b0bc6 Merge branch 'clearnet' into revert-1051-revert-1033-package-cleanup 5 years ago
Ryan Tharp f9baac91a1 Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into patchopensnapps 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
Ryan Tharp 90d2bbb338 refactor refreshRandomPool into small functions, exception clean up 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
Ryan Tharp 4bb2e83cb3 lint 5 years ago
Ryan Tharp 99679741c1 some renames, improve refresh random pool failures better 5 years ago
Ryan Tharp 6bdc269081 include function name in log message 5 years ago
Ryan Tharp e4d762a358 Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into patchopensnapps 5 years ago
Ryan Tharp 8d4be4cb0b lint 5 years ago
Ryan Tharp e66e30bb0b URL for lint 5 years ago
Ryan Tharp 07ce97aa56 serverRequest/sendToProxy refactor, start messagesPollLock implementation, improve logging 5 years ago
Ryan Tharp 2d76b1eda9 .loki support improvement 5 years ago
Ryan Tharp 455bfa4ab7 result guard, mark internal-only intended functions with _ prefix and simplify parameters, logging improvements 5 years ago
Ryan Tharp 241e64b94b lint 5 years ago
Ryan Tharp e3545fa338 change unreachableNode 2nd param to object, put lock around getRandomSnodeAddress so they can't stack, markRandomNodeUnreachable returns remaining count, adjust logging 5 years ago
Ryan Tharp 1c78e1a701 sendToProxy use agent, handle 401/500s, retry system 5 years ago
Mikunj 33925d69e9 Cleanup 5 years ago
Mikunj Varsani d8b982e194 Fix messages not being created properly in open groups 5 years ago
Jeff Becker 8d684f7b1b
make .loki public chats "work"
passing number zero to environmental variables UNSETS the variable, pass "0" instead.
this commit makes it "work" but is probably not the right fix, that comes later. (tm)
5 years ago
Ryan Tharp ce876a8024 not meant to include this 5 years ago
Ryan Tharp 2b29b76d66 lint 5 years ago
Ryan Tharp 3038a8c7d2 use lodash to reduce confusion 5 years ago
Ryan Tharp c36fd8ae62 handle image/ avatar paths 5 years ago
Ryan Tharp 46d401ecbf Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into opengroupordering 5 years ago
Audric Ackermann 370467a127
Merge pull request #878 from Bilb/group-profile-image
Group profile image upload
5 years ago
Ryan Tharp 97393ef25d fix message order when mix multidevice messages, improve error logging 5 years ago
Ryan Tharp 0c43c511d7
Merge pull request #868 from neuroscr/tls-fix
Snode communication retries and logging improvement
5 years ago
Mikunj Varsani adbc791dcb
Merge pull request #877 from loki-project/group-sync
Closed group syncing
5 years ago
Audric Ackermann e0ff1755ac
lint 5 years ago
Audric Ackermann 1428cfe1dd
fix download profile image open groups 5 years ago
Audric Ackermann b756332f89
fix group member dialog and refresh right after group avatar update 5 years ago
Audric Ackermann 60ed8f2972
make download of group avatar work 5 years ago
Mikunj 0eaebcbcac Don't send contact sync message with pairing authorisation.
Don't send secondary devices in contact sync messages.
5 years ago
Audric Ackermann 6d5aed7de8
make upload of group picture work 5 years ago
Ryan Tharp a85fc9d0ba loki-messenger => session-desktop 5 years ago
Ryan Tharp a02fe95556 detect not ready through statusCode instead of string, log any non-200 statusCode, warn if no reply at all, try to debug iv errors, don't call .json() on falsish values 5 years ago
Ryan Tharp 4a55040688 improve code quality 5 years ago
Ryan Tharp 4ba4b8bb54 improve logging, add one retry if not enough snodes in the swarm on long poll start 5 years ago
Ryan Tharp 69dcfa2845 getSwarmNodes refactor to include results from RANDOM_SNODES_TO_USE nodes, make refreshSwarmNodesForPubKey return filteredNodes, initialiseRandomPool() retries 3 times with delays 5 years ago
Ryan Tharp 774c468c39 handle non-base64 responses appropriately, include which server failed in logs 5 years ago
Mikunj Varsani cea5acf62e
Merge pull request #843 from loki-project/session-reset-cleanup
Refactor session reset handling
5 years ago
Audric Ackermann ff10637a5a
separate update group name and group members dialog
(add and remove members are separated)
5 years ago
Mikunj Varsani 8ffb1a0a10 Refactor session reset handling 5 years ago
Mikunj Varsani 10a4f13bc5 Linting 5 years ago
Ryan Tharp 0667269690 remove unneeded async 5 years ago
Ryan Tharp 4210e4d14a fix no token detection conditions 5 years ago
Ryan Tharp 930bc2d094
Merge pull request #827 from neuroscr/tls-fix
improve multidevice profile name handling in open groups
5 years ago
Ryan Tharp e6f5f4e718
Merge pull request #829 from neuroscr/file-notoken
Make private attachments use generic token
5 years ago
Ryan Tharp 846228ce26 Merge branch 'tls-fix' of https://github.com/neuroscr/loki-messenger into tls-fix 5 years ago
Ryan Tharp 5feee5dd5f handle profile properly if primaryDevicePubKey is not set 5 years ago
Ryan Tharp d0f0cac31e lint 5 years ago
Ryan Tharp dc14eb9ca7 open(), logging, stop() clears timers 5 years ago
Ryan Tharp eb263a9ee7 open() 5 years ago
Ryan Tharp c521497f90
lint 5 years ago
Ryan Tharp 14f64e3769
Remove unneeded branch 5 years ago
Ryan Tharp 6faa15d5b4
Update js/modules/loki_app_dot_net_api.js
Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
5 years ago
Ryan Tharp bd4600f6c4 fix spelling and log url on serverRequest with non-json response 5 years ago
Ryan Tharp 277e2e5340 make uploadPrivateAttachment static and use window.tokenlessFileServerAdnAPI, warn if no token yet 5 years ago
Ryan Tharp 9826cf0545 use now static version of uploadPrivateAttachment 5 years ago
Ryan Tharp 60259ab0bb handle clearing profileName correctly, support multidevice profiles better, use getLokiProfile() 5 years ago
Ryan Tharp 9a31e3703c make sure sendToProxy get the textResponse option from submit_challenge, improve logging 5 years ago
Ryan Tharp 926a245bf6 lint and note 5 years ago
Ryan Tharp 0223f40de2 lint 5 years ago
Ryan Tharp 3ebb308175 lint 5 years ago
Ryan Tharp 145cfd762d handle inner JSON parsing errors 5 years ago
Ryan Tharp 4a65a5aa12 handle JSON parsing error 5 years ago
Ryan Tharp 78244d9ef8 file proxy is json encoded 5 years ago
Ryan Tharp b9ab28e2fc inform that we expect a non-json repsonse 5 years ago
Ryan Tharp 4d027909c6 more text response fixes, better snode not ready detection 5 years ago
Ryan Tharp df1d032d96 headers protection, textResponse support, improve logging 5 years ago
Mikunj Varsani c37650c45d Don't wait for file server to return tokens when establishing home connection. 5 years ago
Mikunj Varsani 21e982e5c2 Fix open group joining. 5 years ago
Ryan Tharp 4c44265909 no need to validate empty token, support lokinet/getession file domains, mark broken snodes as bad, improve logging 5 years ago
Ryan Tharp ede5258dd3 improve logging 5 years ago
Ryan Tharp 99afd33fb4 improve logging 5 years ago
Ryan Tharp 3bba0571a0 markRandomNodeUnreachable() refactor, notes/logging 5 years ago
Ryan Tharp 2c4facc694 Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into tls-fix 5 years ago
Vincent b341ceaf76 Closed group joining completed w/o backend 5 years ago
Ryan Tharp 3abb691e2c lint 5 years ago
Ryan Tharp 90de43e6ff refactor out validServer() 5 years ago
Vincent 4fd2126fbe Fileserver update 5 years ago
Ryan Tharp 8767a57ddd actually validate URL before starting up a bunch of timers 5 years ago
Ryan Tharp 739ac4ce4e include useful info on error 5 years ago
Ryan Tharp c1cea3ca04 turn off snode proxy logging 5 years ago
Ryan Tharp d7a1fbab22 make sure TLS is forced on open groups, improve serverRequest error message 5 years ago
Ryan Tharp 3a0b3dddfd lint 5 years ago
Ryan Tharp e6ab3d55ae fix querystring in file-proxy 5 years ago
Ryan Tharp 569485f42a put back seemingly now required process.env.NODE_TLS_REJECT_UNAUTHORIZED 5 years ago
Ryan Tharp c864f00697 lint 5 years ago
Ryan Tharp 3abfd7833c fix typo 5 years ago
Ryan Tharp 058d294eb0 better error checking 5 years ago
Ryan Tharp d69a0a9fd4 lint 5 years ago
Ryan Tharp aee63c3eae
file proxy needs to be able to talk to snode
- disable TLS check for fileProxy
- lokiHttpsAgent => snodeHttpsAgent (since we use for two different things now)
5 years ago
Ryan Tharp 3964e9acf0
Merge branch 'clearnet' into tls-fix 5 years ago
Ryan Tharp 1c7067a957
Merge pull request #774 from neuroscr/groupavatar
Token handling over snodeProxy
5 years ago
Vince 5bbd136493
Merge pull request #758 from neuroscr/version-check
Version check, de-signal.org-ification
5 years ago
Ryan Tharp 18065c101b minor refactor 5 years ago
Ryan Tharp daa21c1265 Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into groupavatar 5 years ago
Ryan Tharp 3d70a6dc66 make sure token comms are done over fileProxy, other notes, logging adjustment 5 years ago
Maxim Shishmarev 3f58dea035 Remove mixpanel 5 years ago
Ryan Tharp 24b37b93c6 add .loki to have a self-signed cert 5 years ago
Ryan Tharp 615a41fa21
Merge branch 'clearnet' into tls-fix 5 years ago
Vincent 9dcc851ebd Updated all icon references 5 years ago
Maxim Shishmarev 02320334f0 Remove P2P 5 years ago
Ryan Tharp 19b007696c
address missing comma for lint 5 years ago
Ryan Tharp 646c3b2f26 disable unauthorization rejection when making https requests limited to lokiRpc 5 years ago
Ryan Tharp 3797a2169c add skipToken to establishConnection options, smuggle out secureRpcPubKey 5 years ago
Maxim Shishmarev 3418fff2d3
Merge pull request #749 from neuroscr/rss-proxy
pull RSS through file proxy
5 years ago
Maxim Shishmarev d910633422
Merge pull request #746 from msgmaxim/no-autojoin-loki-chats
Disable auto-joining default loki open groups
5 years ago
Maxim Shishmarev cf10a19b34 Disable auto-joining default loki open groups 5 years ago
Vince 310038ec31
Merge pull request #748 from loki-project/brand-redesign
Brand redesign
5 years ago
Ryan Tharp 8fc5b6769a pull RSS through file proxy 5 years ago
Audric Ackermann d68aeb947e
Merge branch 'clearnet' into brand-redesign 5 years ago
Audric Ackermann 7867f4dceb
Merge branch 'clearnet' into brand-redesign 5 years ago
Maxim Shishmarev b7e93ab597 Support sealed sender for friend requests 5 years ago
Maxim Shishmarev b405b150cc Sealed sender support 5 years ago
Maxim Shishmarev dc0571137c
Merge pull request #734 from neuroscr/fileproxy
ephemeral layering file proxy
5 years ago
Audric Ackermann a39881ff1a
Display subscriber count for open groups (#741)
Display subscriber count for open groups
5 years ago
Ryan Tharp 758a936e8f include IV in server response 5 years ago
Ryan Tharp ab83f89142 _sendToProxy pass headers/handle response refactor, lint 5 years ago
Ryan Tharp f2233c20c7 add missing semicolon 5 years ago
Ryan Tharp 11359fc037
Merge branch 'clearnet' into fileproxy 5 years ago
Vincent 4a7e2dece7 Password lock screen and delete data screen 5 years ago
Audric Ackermann c92d22fece
allow space inside a display name but not at start or end 5 years ago
Maxim Shishmarev c1a55848b8
Merge pull request #739 from msgmaxim/secondary-device-fix
Fix not showing messages from secondary devices
5 years ago
Maxim Shishmarev 8ce066b802 Display subscriber count for open chats 5 years ago
Vincent 4d690768a6 Scrolling button updated and animations to modals 5 years ago
Ryan Tharp 5ced9a2b85 initial refactor of feaure flag detection statements in serverRequest() 5 years ago
Ryan Tharp 41e35a1647 support file uploads on file proxy, fix _sendToProxy calling 5 years ago
Ryan Tharp f8252ec1ec decrypt file server response, remove debug, handle crypt before _sendToProxy, improve json parsing failure logging 5 years ago
Ryan Tharp e51a030dc9 include log 5 years ago
Maxim Shishmarev 7cc2f5d707 Fix not showing messages from secondary devices 5 years ago
Audric Ackermann 293eca0509 Merge branch 'brand-redesign' into clearnet 5 years ago
Audric Ackermann d3f994d9bf Merge branch 'clearnet' of github.com:loki-project/loki-messenger into clearnet 5 years ago
Vince 5d705312cc
Merge branch 'brand-redesign' into brand-redesign 5 years ago
Audric Ackermann 37cbd3d2c0 fix SessionSettings not found as does not exist 5 years ago
Ryan Tharp ce2e85cd38 send ephermal pubkey not privkey, file_proxy JSON encode body 5 years ago
Ryan Tharp 6ab16d7e56 fix case so function exists, give a warning when initialiseRandomPool or getSwarmNodes fail 5 years ago
Ryan Tharp 4198f30b99 Label errors better, make _sendToProxy use ephermal layering 5 years ago
Ryan Tharp 3969817a0a lint
lint

lint
5 years ago