* 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>
* 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
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
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
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
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.