Commit Graph

226 Commits (f7581cf4ebee13edb51e6372e9903c5e8745d0e9)

Author SHA1 Message Date
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 3 years ago
Audric Ackermann 5d6d81b9ef Move accountManager to typescript 3 years ago
Audric Ackermann 4f7cb04552 remove completely SignalProtocolStore 3 years ago
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
3 years ago
Audric Ackermann a6cecd33e3 remove ContactDetails unused 3 years ago
Audric Ackermann ec9bd4a3a9
remove unused proto files and ProvisioningCipher.js 3 years ago
Audric Ackermann 46dfb3489b
remove mock sockets and websockets unused resources 3 years ago
Audric Ackermann 75b7788fa9
remove stuff related to web api 3 years ago
Audric Ackermann 2bcc7be3e6
remove mp3 lame already file and webrecorder worker unused 4 years ago
Audric Ackermann 291d4682e4
fix some tests 4 years ago
Audric Ackermann 53433261d9
remove outgoing_message.js and everything related to it 4 years ago
Mikunj 57b5effaf2 Replace long 4 years ago
Mikunj ae2b8334e0 Replace bytebuffer component 4 years ago
Audric Ackermann 66de8d9648
remove plenty of the friend logic 4 years ago
Audric Ackermann fa853538d0
LINT after prettier upgrade 4 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>
4 years ago
Audric Ackermann 887ba53902 yarn grunt/ watch for sub-sub folders too 5 years ago
sachaaaaa 37f0fced29 Show commit hash in About window for beta builds 5 years ago
Beaudan 9ff96a0250 Fixed tests and moved friend request status enum to new friends file 5 years ago
Mikunj 1a15ec9c15 Merge commit signal/master into signal-1.20 5 years ago
Mikunj 6bd2d3962e Linted files 6 years ago
Mikunj 982f10a505 Split libloki logic.
Added to gruntfile.
6 years ago
sachaaaaa 583a10628a run service_node in the browser instead of as a nodejs module 6 years ago
Scott Nonnenberg e4babdaef0 Updates to backup infrastructure 6 years ago
Mikunj cbb62f4a71 Added tsx files to grunt watch.
Fixed minor bug in conversation view.
6 years ago
Mikunj 654b0dac84 Merge signal-master. 6 years ago
sachaaaaa c0a5f085ea fix space in gruntfile.js 6 years ago
sachaaaaa dd5c11768a win & osx builds on gitlab 6 years ago
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 6 years ago
Beaudan 7782c58d14 Slight refactor of PoW file to make easier to test plus some tests for the PoW functionality 6 years ago
Beaudan c93aff7ebe Setup grunt/yarn etc for loki tests plus wrote first 2 simple libloki-protocol tests 6 years ago
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
6 years ago
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
6 years ago
sachaaaaa 4b9fcb98d4 Linting and other housekeeping stuff 6 years ago
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 6 years ago
Scott Nonnenberg ecb126e74c
Custom linter to check code quality (#2753) 6 years ago
Scott Nonnenberg 0d6c3c0bce Introduce new languages to the product 6 years ago
Scott Nonnenberg 02fbea96c0 Move base64 conversions off of the main thread 6 years ago
Scott Nonnenberg 5933a34a18 Use window.log in browser context, turn on console eslint rule 6 years ago
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
6 years ago
Scott Nonnenberg 43a44793c5 Remove jshint - move everything over to eslint
Also removed all hints of previous linters
6 years ago
Scott Nonnenberg dc11db92f9 New React component: Message
Also: Use react to render contects on the 'show group members' screen
6 years ago
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
6 years ago
Scott Nonnenberg 67464774c3 eslintify expiring_messages.js 6 years ago
Scott Nonnenberg f3bd0cf903 Refactor api.js into web_api, which encapsulates all web access 6 years ago
Scott Nonnenberg 496e0499c4 bower.json and Gruntfile.js cleanup 6 years ago
Scott Nonnenberg ec3e36824c Remove jscs from the project 6 years ago
Scott Nonnenberg cfe0bd0e79 Move to npm for several dependencies
mustache
jQuery
underscore
backbone
mocha
chai
intl-tel-input
6 years ago
Scott Nonnenberg 9e0f387e80 Print out main process logs if electron unit tests fail 6 years ago
Daniel Gasienica ba4d8952c6 Revert "Use protocol buffer module for `libtextsecure`"
This does not work with `ArrayBuffer` out of the box and will need to be
investigated and tested more before switching.

Some APIs also seemed to have changed:
- Before (OOP): `new textsecure.protobuf.WebSocketMessage(…).encode();`
- After (functional):
  ```
  textsecure.protobuf.WebSocketMessage.encode(
    new textsecure.protobuf.WebSocketMessage(…)
  );
  ```

This reverts commit d758119d9de4f99742ea941e86180b1d600c2f22.
6 years ago