Commit Graph

210 Commits (ac8d0aa441917b5e8faf486e9e1d0e682b75a13a)

Author SHA1 Message Date
Audric Ackermann 887ba53902 yarn grunt/ watch for sub-sub folders too
sachaaaaa 37f0fced29 Show commit hash in About window for beta builds
Beaudan 9ff96a0250 Fixed tests and moved friend request status enum to new friends file
Mikunj 1a15ec9c15 Merge commit signal/master into signal-1.20
Mikunj 6bd2d3962e Linted files
Mikunj 982f10a505 Split libloki logic.
Added to gruntfile.
sachaaaaa 583a10628a run service_node in the browser instead of as a nodejs module
Scott Nonnenberg e4babdaef0 Updates to backup infrastructure
Mikunj cbb62f4a71 Added tsx files to grunt watch.
Fixed minor bug in conversation view.
Mikunj 654b0dac84 Merge signal-master.
sachaaaaa c0a5f085ea fix space in gruntfile.js
sachaaaaa dd5c11768a win & osx builds on gitlab
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
Beaudan 7782c58d14 Slight refactor of PoW file to make easier to test plus some tests for the PoW functionality
Beaudan c93aff7ebe Setup grunt/yarn etc for loki tests plus wrote first 2 simple libloki-protocol tests
Scott Nonnenberg 8add0ac8a1
Enable CI and packaged builds with Electron v3 ()
* 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
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
sachaaaaa 4b9fcb98d4 Linting and other housekeeping stuff
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
Scott Nonnenberg ecb126e74c
Custom linter to check code quality ()
Scott Nonnenberg 0d6c3c0bce Introduce new languages to the product
Scott Nonnenberg 02fbea96c0 Move base64 conversions off of the main thread
Scott Nonnenberg 5933a34a18 Use window.log in browser context, turn on console eslint rule
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
Scott Nonnenberg 43a44793c5 Remove jshint - move everything over to eslint
Also removed all hints of previous linters
Scott Nonnenberg dc11db92f9 New React component: Message
Also: Use react to render contects on the 'show group members' screen
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
Scott Nonnenberg 67464774c3 eslintify expiring_messages.js
Scott Nonnenberg f3bd0cf903 Refactor api.js into web_api, which encapsulates all web access
Scott Nonnenberg 496e0499c4 bower.json and Gruntfile.js cleanup
Scott Nonnenberg ec3e36824c Remove jscs from the project
Scott Nonnenberg cfe0bd0e79 Move to npm for several dependencies
mustache
jQuery
underscore
backbone
mocha
chai
intl-tel-input
Scott Nonnenberg 9e0f387e80 Print out main process logs if electron unit tests fail
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.
Daniel Gasienica 60077d0b7b Use protocol buffer module for `libtextsecure`
Daniel Gasienica 4e39882afc Compile protocol buffers first
Daniel Gasienica f88ebdf8b7 Compile protocol buffers as part of `yarn grunt dev`
Daniel Gasienica c5d6e4a602 Gruntfile: Remove dependency on `npm`
Daniel Gasienica ce8db96069 Gruntfile: 🔤-ize `watch` targets
Scott Nonnenberg 9608b88eae Gruntfile: Remove build fetching, no longer used in build
Daniel Gasienica 1dd87ad197 Format all source code using Prettier
Scott Nonnenberg 0e99ca61a2
eslintify file_input_view.js
Daniel Gasienica 5c81e1b353 Watch TypeScript files in Grunt
Scott Nonnenberg ef1d568a80
Restore rendering of group update and end session messages
The previous work to refactor bubbles broke rendering for these message
types. :0/
Scott Nonnenberg d0b11c59f5
Eslintify conversation_view.js
Scott Nonnenberg 47a3acd5c9
Remove models/messages + models/messages from jscs run
Scott Nonnenberg e99192dca7
Unleash eslint on models/messages.js
Fun fact: eslint was not running on this file, despite the eslint
directives previously in the file!
Scott Nonnenberg 33ef967dd7
Unleash eslint on models/conversations.js
Scott Nonnenberg e69586200a
Unleash eslint on message_receiver.js - lots of change
Scott Nonnenberg 2def6afe45
message_view.js: eslint fixes and a bit of fixup