Commit Graph

58 Commits (a0e5c7386f285fdf6eac4ea5eaaf6d6c3bc4df27)

Author SHA1 Message Date
Audric Ackermann c7e54c4257
make attachment download use onion routing 5 years ago
Mikunj 49b994367d Remove multi device data.
Force wipe secondary devices.
5 years ago
Audric Ackermann 14894a916e
fix device mapping upload format 5 years ago
Mikunj 7a6ea97efb Handle strings in MultiDeviceProtocol 5 years ago
Mikunj c8414fdce6 Simplify sql and data files 5 years ago
Mikunj e6139a5463 Merge branch 'clearnet' into message-sending-refactor 5 years ago
Audric Ackermann fa853538d0
LINT after prettier upgrade 5 years ago
Audric Ackermann 03757ba2ca
lint 5 years ago
Audric Ackermann 64fca28aa8
Merge remote-tracking branch 'upstream/clearnet' into integration-test-logs-rebased 5 years ago
Audric Ackermann a5ff0f0c08
test: no need to stub fileserver. start it locally 5 years ago
Ryan Tharp fd4d52ac97 remove LokiFileServerFactoryAPI.secureRpcPubKey, remove pubkeys calculation from here and put into adn class 5 years ago
Ryan Tharp ae210c4312 urlPubkeyMap to allow LOKIFOUNDATION_DEVFILESERVER_PUBKEY to work seemlessly (while hardcoding), set this._server.pubKeyHex 5 years ago
Ryan Tharp 60abea1454 typo and validAuthorisations bug fix 5 years ago
Ryan Tharp 70c4b9b3c7
lint 5 years ago
Ryan Tharp 1ee2088343
Fix integration tests slipping into release
Per Mikunj
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
Mikunj 33925d69e9 Cleanup 5 years ago
Mikunj Varsani d8b982e194 Fix messages not being created properly in open groups 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 277e2e5340 make uploadPrivateAttachment static and use window.tokenlessFileServerAdnAPI, warn if no token yet 5 years ago
Mikunj Varsani c37650c45d Don't wait for file server to return tokens when establishing home connection. 5 years ago
Ryan Tharp d69a0a9fd4 lint 5 years ago
Ryan Tharp 3797a2169c add skipToken to establishConnection options, smuggle out secureRpcPubKey 5 years ago
Ryan Tharp 9e10d11e9d hardcode file server pub key, pass it to _server 5 years ago
Ryan Tharp a7bb17b977 remove _adnApi and expect LokiAppDotNetAPI to be like the serverAPI 5 years ago
sachaaaaa a29f0a4120 encrypted pictures for public chats 5 years ago
sachaaaaa 666c640634 lint 5 years ago
sachaaaaa 03e0a5976f Fix DEVICE_MAPPING_USER_ANNOTATION_TYPE 5 years ago
Ryan Tharp 6cde9aa263
Merge pull request #638 from neuroscr/multidevice-publicchat
Public Chat - home server refactor / read public chat avatars from home server
5 years ago
Ryan Tharp a147afec12 add note 5 years ago
sachaaaaa db0068b429 Sending and handling of special UNPAIRING_REQUEST message 5 years ago
Ryan Tharp 207e3d022f Merge branch 'profile-pictures' of https://github.com/msgmaxim/loki-messenger into multidevice-publicchat 5 years ago
Ryan Tharp 85185714ae export a factory, LokiHomeServerInstance/LokiFileServerInstance split, verifyUserObjectDeviceMap change return to object, remove getDeviceMappingForUsers because too small, avatar map, adjust constant format 5 years ago
Maxim Shishmarev 5a08ac9cc1 Use avatar specific endpoint 5 years ago
Ryan Tharp d1526b9997 diable checkSigs, use libloki.crypto.validateAuthorisation, lint, remove dead code 6 years ago
Beaudan Brown ac762d43d5 Reduce indentation and simplify code by using existing verification functions 6 years ago
Ryan Tharp cad9a89636 verifyUserObjectDeviceMap removed notFoundHandler from prototype/reduced branching depth/returns users pub keys not found 6 years ago
Ryan Tharp 0b05753fec use renamed getUsers 6 years ago
Ryan Tharp eab53e158e Merge branch 'multi-device' of https://github.com/loki-project/loki-messenger into multidevice-publicchat 6 years ago
Beaudan Brown d97eced37b Merge branch 'clearnet' into multi-device 6 years ago
Beaudan Brown 638f1c0e6c Bringing together all the stuff for attachments and link previews 6 years ago
Beaudan Brown f0c198c7b7 Split uploadData to public and private 6 years ago
Beaudan Campbell-Brown ac80ef0d4e
Merge pull request #557 from BeaudanBrown/add-server
Add server
6 years ago
Beaudan Brown c7a91686a8 Update proto id and use the server id as the attachmentpointer id 6 years ago
Beaudan Brown 4e85435bf7 Update attachment pipeline to upload and download from loki fileserver 6 years ago
Beaudan Brown 363cd81ccc Hook up UI to all the server creation logic etc 6 years ago
Beaudan Brown 4e70b66131 Extract the async token grab from the server api constructor and put in the factory. Fix up the areas this affects 6 years ago
Ryan Tharp d432e2a77b verifyUserObjectDeviceMap() and refactor out verifyPrimaryPubKeys() 6 years ago
Ryan Tharp 7b22806bf0 Merge branch 'multi-device' of https://github.com/loki-project/loki-messenger into multidevice-publicchat 6 years ago