Commit graph

227 commits

Author SHA1 Message Date
Audric Ackermann
0c0da48150
remove pow 2021-04-28 15:24:45 +10:00
Audric Ackermann
f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann
5d6d81b9ef Move accountManager to typescript 2021-03-01 10:39:46 +11:00
Audric Ackermann
4f7cb04552 remove completely SignalProtocolStore 2021-02-22 14:10:26 +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
a6cecd33e3 remove ContactDetails unused 2021-01-27 15:49:06 +11:00
Audric Ackermann
ec9bd4a3a9
remove unused proto files and ProvisioningCipher.js 2021-01-22 10:26:22 +11:00
Audric Ackermann
46dfb3489b
remove mock sockets and websockets unused resources 2021-01-19 16:01:53 +11:00
Audric Ackermann
75b7788fa9
remove stuff related to web api 2021-01-15 10:56:49 +11:00
Audric Ackermann
2bcc7be3e6
remove mp3 lame already file and webrecorder worker unused 2020-12-14 14:38:05 +11:00
Audric Ackermann
291d4682e4
fix some tests 2020-11-25 09:14:22 +11:00
Audric Ackermann
53433261d9
remove outgoing_message.js and everything related to it 2020-07-13 17:10:20 +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
Audric Ackermann
66de8d9648
remove plenty of the friend logic 2020-06-15 18:05:14 +10:00
Audric Ackermann
fa853538d0
LINT after prettier upgrade 2020-05-29 16:25:15 +10: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
Audric Ackermann
887ba53902 yarn grunt/ watch for sub-sub folders too 2020-01-03 17:07:40 +11:00
sachaaaaa
37f0fced29 Show commit hash in About window for beta builds 2019-03-01 17:10:20 +11:00
Beaudan
9ff96a0250 Fixed tests and moved friend request status enum to new friends file 2019-01-31 10:26:46 +11:00
Mikunj
1a15ec9c15 Merge commit signal/master into signal-1.20 2019-01-22 13:54:03 +11:00
Mikunj
6bd2d3962e Linted files 2019-01-16 16:18:08 +11:00
Mikunj
982f10a505 Split libloki logic.
Added to gruntfile.
2019-01-10 10:06:15 +11:00
sachaaaaa
583a10628a run service_node in the browser instead of as a nodejs module 2019-01-09 16:55:52 +11:00
Scott Nonnenberg
e4babdaef0 Updates to backup infrastructure 2019-01-04 12:21:26 -08:00
Mikunj
cbb62f4a71 Added tsx files to grunt watch.
Fixed minor bug in conversation view.
2018-12-20 15:30:19 +11:00
Mikunj
654b0dac84 Merge signal-master. 2018-12-17 12:56:04 +11:00
sachaaaaa
c0a5f085ea fix space in gruntfile.js 2018-12-14 15:31:32 +11:00
sachaaaaa
dd5c11768a win & osx builds on gitlab 2018-12-14 15:29:52 +11:00
Beaudan
6113f13d3a Rip the worker logic out of message_receiver and add the functionality for it to work with pow. Fix pow tests to work with those changes 2018-12-13 17:13:52 +11:00
Beaudan
7782c58d14 Slight refactor of PoW file to make easier to test plus some tests for the PoW functionality 2018-12-10 14:13:54 +11:00
Beaudan
c93aff7ebe Setup grunt/yarn etc for loki tests plus wrote first 2 simple libloki-protocol tests 2018-12-10 14:13:54 +11:00
Scott Nonnenberg
8add0ac8a1
Enable CI and packaged builds with Electron v3 (#2939)
* Update spectron to fix linux CI runs

* Point test-release grunt task at release folder

* Ensure that build folders of socks/smart-buffer are in build

* AppVeyor: windows build output folder is now release

* Travis: Force build output to release directory
2018-11-27 16:20:48 -08:00
Beaudan
c59b196487 Now reading messages and adding them to conversations. Some cleaning of unreachable code. Modified the message data to be encoded as base64 string before sending to server
Sending our public key in header of message

Now attaching our key to the source field when sending messages, allows messages to be decrypted with the fallback cypher

Now polling the server for messages every 5 seconds

Sending the source device with messages

Added mock respond function to request to leave it that same as the websocket stuff. RetrieveMessages now just returns the result

Polling now continues if the server responds with an error. Returning only the result from sendMessage and retrieveMessages

Revert commenting of unreachable code

Refactored http logic into own file

Revert a change to websocket-resources
2018-11-13 10:13:19 +11:00
sachaaaaa
4b9fcb98d4 Linting and other housekeeping stuff 2018-11-01 11:10:30 +11:00
sachaaaaa
04b45f6aa1 Decrypt friend-request messages (the ones using fallback encryption). Moved logic into a new file libloki-protocol.js and concat loki code into js/libloki.js 2018-10-08 15:04:14 +11:00
Scott Nonnenberg
ecb126e74c
Custom linter to check code quality (#2753) 2018-09-20 15:24:52 -07:00
Scott Nonnenberg
0d6c3c0bce Introduce new languages to the product 2018-09-05 14:17:38 -07:00
Scott Nonnenberg
02fbea96c0 Move base64 conversions off of the main thread 2018-08-16 17:39:30 -07:00
Scott Nonnenberg
5933a34a18 Use window.log in browser context, turn on console eslint rule 2018-07-21 14:52:43 -07:00
Scott Nonnenberg
3c69886320 Finish new Message component, integrate into application
Also:
- New schema version 8 with video/image thumbnails, screenshots, sizes
- Upgrade messages not at current schema version when loading messages
  to show in conversation
- New MessageDetail react component
- New ConversationHeader react component
2018-07-17 15:58:07 -07:00
Scott Nonnenberg
43a44793c5 Remove jshint - move everything over to eslint
Also removed all hints of previous linters
2018-07-17 15:54:32 -07:00
Scott Nonnenberg
dc11db92f9 New React component: Message
Also: Use react to render contects on the 'show group members' screen
2018-07-17 15:53:33 -07:00
Scott Nonnenberg
ad4387803b New media permission, show dialog when not enabled for voice msg
UI now in separate renderer:
  - the permissions popup
  - settings dialog
  - debug log dialog
  - about window

Couple bug fixes:
  - About Window: Fix 'escape' to close window
  - Remove outdated dist/copy tasks from Gruntfile

Eslintified settings_view.js
2018-07-03 16:04:21 -07:00
Scott Nonnenberg
67464774c3 eslintify expiring_messages.js 2018-07-03 16:04:21 -07:00
Scott Nonnenberg
f3bd0cf903 Refactor api.js into web_api, which encapsulates all web access 2018-05-31 13:25:45 -07:00
Scott Nonnenberg
496e0499c4 bower.json and Gruntfile.js cleanup 2018-05-23 16:26:48 -07:00
Scott Nonnenberg
ec3e36824c Remove jscs from the project 2018-05-23 16:26:48 -07:00
Scott Nonnenberg
cfe0bd0e79 Move to npm for several dependencies
mustache
jQuery
underscore
backbone
mocha
chai
intl-tel-input
2018-05-23 16:26:48 -07:00
Scott Nonnenberg
9e0f387e80 Print out main process logs if electron unit tests fail 2018-05-23 16:26:47 -07:00