Commit graph

550 commits

Author SHA1 Message Date
Scott Nonnenberg
c75a756b2a v1.23.0-beta.1 2019-03-12 17:46:20 -07:00
Scott Nonnenberg
b3ac1373fa Move left pane entirely to React 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
d72f89d776 Render only visible conversations in left pane 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
ae161c6cf6 Update to Electron 4.x 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
ae2db9f09a Improve handling for URLs composed of mixed character sets 2019-03-12 17:44:14 -07:00
sachaaaaa
0d3cd78c12 Replace mentions of Signal in package json 2019-03-05 15:19:16 +11:00
Beaudan Campbell-Brown
8e3542b511
Merge pull request #213 from sachaaaaa/channel_encryption
Hook up channel encryption
2019-03-04 12:19:34 +11:00
sachaaaaa
4714cafa6f
Merge pull request #238 from sachaaaaa/commit_hash_about
Show commit hash in About window for beta builds
2019-03-04 10:52:26 +11:00
sachaaaaa
37f0fced29 Show commit hash in About window for beta builds 2019-03-01 17:10:20 +11:00
sachaaaaa
ee8b9b7982 update react-contextmenu for bugfix 2019-02-28 14:09:37 +11:00
sachaaaaa
aa722590fa use channel encryption with storage server 2019-02-27 14:04:15 +11:00
2-4601
4b1ae1535d Remove gconf dependency from deb package (#3174)
Fixes #2344

//FREEBIE
2019-02-25 09:44:49 -08:00
Mikunj
75d0894104 Fixed files not included in release.
Moved node relevant stuff in libloki into its own modules folder.
2019-02-22 12:00:04 +11:00
Scott Nonnenberg
18b5b7c046 v1.22.0 2019-02-20 17:30:43 -08:00
Scott Nonnenberg
65e4acb706 v1.22.0-beta.2 2019-02-20 17:23:57 -08:00
Scott Nonnenberg
552db647e5 v1.22.0-beta.1 2019-02-13 16:54:51 -08:00
Scott Nonnenberg
3f8223ff48 Revert electron-builder upgrade due to bugs
This reverts commit 8a3acc6b7e
2019-02-13 16:04:58 -08:00
Scott Nonnenberg
681ca363fe v1.21.2-beta.1 2019-02-12 14:55:38 -08:00
sachaaaaa
68fe552156 Merge commit '5c8558e293989094693f918a63b672301f1aeb55' into merge_1_21_1
* commit '5c8558e293989094693f918a63b672301f1aeb55':
  v1.21.1
  v1.21.1-beta.1
  Fix: Navigation to message via quote click didn't always work
  mainWindow.close - be ready for null mainWindow
  Ensure that Curve.async points to worker after startWorker call
  Protect against unhandled promises when calling checkForUpdates
  Reenable send when link preview is missing an image

# Conflicts:
#	package.json
2019-02-12 13:17:35 +11:00
Scott Nonnenberg
5c8558e293 v1.21.1 2019-02-08 12:24:44 -08:00
Scott Nonnenberg
84bb9be6a9 v1.21.1-beta.1 2019-02-08 12:11:05 -08:00
sachaaaaa
f900a08eda
Merge pull request #177 from sachaaaaa/merge_1_21_0
Merge Signal 1.21.0
2019-02-07 10:08:50 +11:00
sachaaaaa
a0f67c22da Merge branch 'textsecure/master' into merge_1_21_0
* textsecure/master: (26 commits)
  v1.21.0
  v1.21.0-beta.4
  Dark Theme: Preserve blue background on app loading screen
  Localization updates
  Fix width of audio player when window is very narrow
  A number of small fixes for Link Previews
  Get rid of the white flash when the app starts up (#3083)
  v1.21.0-beta.3
  Lint fixes
  Introduce new language: NB
  Fail over to all numbers in retry if errors don't have numbers
  Use the proper method for pulling attachments off disk for retry
  Fix rendering bug with verified state in updateVerified()
  Update electron-builder and electron-updater
  Ensure that dialog pops up when permissions denied for voice note
  Lint fixes
  Large update to localization strings
  Link Previews
  Ensure that blocked messages are dropped even after sealed sender
  Don't linkify quoted message contents
  ...

# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	_locales/cs/messages.json
#	background.html
#	config/default.json
#	index.html
#	js/models/conversations.js
#	js/modules/web_api.js
#	js/settings_start.js
#	js/views/conversation_view.js
#	js/views/settings_view.js
#	package.json
#	protos/SignalService.proto
#	stylesheets/_index.scss
#	stylesheets/_settings.scss
2019-02-06 13:53:20 +11:00
Beaudan
02d6920ade Tests for loki_p2p_api, added yarn command to generate coverage html, instantiating loki_p2p_api in the test preload 2019-02-06 10:26:25 +11:00
Scott Nonnenberg
c5eb067206 v1.21.0 2019-02-05 15:10:32 -08:00
Scott Nonnenberg
6599c9a704 v1.21.0-beta.4 2019-02-05 14:36:39 -08:00
Scott Nonnenberg
b69e720c81 v1.21.0-beta.3 2019-01-30 15:43:21 -08:00
Scott Nonnenberg
8a3acc6b7e Update electron-builder and electron-updater 2019-01-29 13:53:14 -08:00
Scott Nonnenberg
813924685e Link Previews 2019-01-29 13:53:14 -08:00
Mikunj Varsani
b226feaac7
Merge pull request #148 from Mikunj/signal-1.20
Signal 1.20
2019-01-25 10:13:08 +11:00
Mikunj
1a15ec9c15 Merge commit signal/master into signal-1.20 2019-01-22 13:54:03 +11:00
Mikunj
8c9b1a7a7a Added loki server.
Added test.
2019-01-21 15:23:20 +11:00
Scott Nonnenberg
d8d08cfe12 v1.20.0 2019-01-17 10:23:53 -08:00
Scott Nonnenberg
f69a0b45bf v1.20.0-beta.3 2019-01-15 11:05:56 -08:00
Scott Nonnenberg
92c2a0f996 Data infrastructure work 2019-01-14 17:40:31 -08:00
Scott Nonnenberg
57abb8300f Upgrade Electron to 3.0.14 2019-01-14 17:40:31 -08:00
Scott Nonnenberg
e4babdaef0 Updates to backup infrastructure 2019-01-04 12:21:26 -08:00
sachaaaaa
e3138f8fde add yarn pow-metrics 2018-12-20 15:58:18 +11:00
Mikunj
654b0dac84 Merge signal-master. 2018-12-17 12:56:04 +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
Mikunj
ba178b04b8 Minor fixes for production builds. 2018-12-11 15:35:57 +11:00
Scott Nonnenberg
8c6d7bdb5c v1.19.0 2018-12-10 15:12:07 -08:00
Scott Nonnenberg
e751ecbfeb v1.19.0-beta.4 2018-12-10 15:04:31 -08:00
Scott Nonnenberg
281e613a1d Remove nsp; its registry has now been taken offline 2018-12-10 14:31:20 -08:00
sachaaaaa
a1255dd31e
Merge pull request #77 from Mikunj/password-protection
Password protection
2018-12-10 16:28:10 +11:00
Mikunj
e1aba93aea Merge signal 1.18.1 changes. 2018-12-10 15:04:12 +11:00
Beaudan
be878f00a4 Updated names of some test functions. Added yarn commands to view output of different tests. Added a test and updated existing test to use more efficient asserts 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
sachaaaaa
d8f4d1f313 Fixes to get production build working 2018-12-07 16:49:43 +11:00
Mikunj
7a96b8446a Rename launcherView to passwordView. 2018-12-06 15:39:17 +11:00
Mikunj
6b9764e6c6 Added launcher view. 2018-12-06 15:39:17 +11:00
Mikunj
d60f147659 replaced jdenticon with identicon.js.
Cleanup any unused images.
2018-12-03 16:09:12 +11:00
Mikunj
85fe666edb Added jdenticon package. 2018-12-03 08:55:43 +11:00
Scott Nonnenberg
a8fbd085e2 v1.19.0-beta.3 2018-11-29 16:31:57 -08:00
Scott Nonnenberg
523c65a1b7 v1.19.0-beta.2 2018-11-27 16:42:41 -08: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
Scott Nonnenberg
3e0abe80eb Update proxy-agent to latest 2018-11-27 09:53:02 -08:00
Scott Nonnenberg
97bfe5859c Update lodash to latest release 2018-11-26 18:09:50 -08:00
Scott Nonnenberg
6a4c7afc45 v1.18.1 2018-11-26 15:44:44 -08:00
Scott Nonnenberg
68af1ae1ea Show dialog if application fails to start up properly 2018-11-26 15:26:22 -08:00
Scott Nonnenberg
dc2afe4b6e Update websocket dep; 1.0.25 was causing errors w/Electron3 2018-11-26 15:26:04 -08:00
Scott Nonnenberg
58544472c8 Upgrade to node 10.13.0; update chokidar, its dep upath fails 2018-11-26 15:26:04 -08:00
Scott Nonnenberg
6039c29d12 Update to Electron3; reinstall native deps for nan which builds 2018-11-26 15:26:04 -08:00
Scott Nonnenberg
d75d823873 package.json: Lock all dependencies to specific versions 2018-11-26 15:26:04 -08:00
Mikunj
4b4999ac35 Update to signal 1.18.0 2018-11-15 10:52:16 +11:00
Scott Nonnenberg
20632b9581 v1.18.0 2018-11-14 15:43:27 -08:00
sachaaaaa
5bcf63e592
Merge pull request #39 from BeaudanBrown/last-hash
Last hash
2018-11-14 14:22:11 +11:00
Beaudan
3aa135fdb4 Grabbing last hash from server response. only requesting messages after the lasthash. Keeping track of lasthash for array of nodes (currently hardcoded for one) 2018-11-14 13:09:33 +11:00
Mikunj
e2a48b8373 Clean up multi instance code. 2018-11-14 09:38:00 +11:00
Scott Nonnenberg
7d54f7928d v1.18.0-beta.7 2018-11-12 17:56:27 -08:00
Scott Nonnenberg
59d048ca06 v1.18.0-beta.6 2018-11-07 17:24:51 -08:00
Scott Nonnenberg
8391f6ec4e v1.18.0-beta.5 2018-11-01 17:24:07 -07:00
Scott Nonnenberg
3f3c63a46f v1.18.0-beta.4 2018-10-31 17:53:03 -07:00
sachaaaaa
4b9fcb98d4 Linting and other housekeeping stuff 2018-11-01 11:10:30 +11:00
Scott Nonnenberg
0a6827ecda v1.18.0-beta.3 2018-10-29 15:40:52 -07:00
Scott Nonnenberg
817cf5ed03 v1.17.2-beta.1 2018-10-26 15:15:47 -07:00
Scott Nonnenberg
ad6f7f35a4 v1.17.1-beta.1 2018-10-24 15:19:28 -07:00
sachaaaaa
9370e2b74a Merge branch 'master' of https://github.com/signalapp/Signal-Desktop into development
* 'master' of https://github.com/signalapp/Signal-Desktop: (38 commits)
  v1.17.0
  v1.17.0-beta.4
  Ensure that blue group avatars are preserved in dark theme
  Android theme: Incoming quotes take color from containing message
  Conversations have blue avatar backgrounds if no image provided
  Fix lint errors
  Add ca language
  inboxView: Ensure Conversation exists for our own number
  Ensure that file is not attached if we've filtered it
  v1.17.0-beta.3
  Localization updates
  v1.16.3
  Lint fixes
  Lint fixes
  Better handle large numbers of messages in cache on startup
  Keep object stores after conversations migrate to SQLCipher
  Longer timeout for orphaned file cleanup
  Tests and increase consistency for isFileDangerous calls
  Longer timeout for orphaned file cleanup
  v1.17.0-beta.2
  ...

# Conflicts:
#	background.html
#	package.json
2018-10-23 13:32:08 +11:00
Scott Nonnenberg
47c81e1be9 v1.17.0 2018-10-22 17:09:15 -07:00
Scott Nonnenberg
f01c5f3e68 v1.17.0-beta.4 2018-10-18 16:07:52 -07:00
Beaudan
ee57c698d7 Client side proof of work attached to messages
Skeleton calcPoW function that prepares payload for hashingFunction to increment Uint8Array nonce

Util function for converting a number to its Uint8Array representation

Actually perform calculate PoW nonce for every message

Adding bytebuffer as dependency and updated package-lock

Move PoW to new file and execute it in child process

TODO: Move send message logic to callback after child process has finished calculating the PoW

Refactored nonce calculation to function to be awaited

More readable timestamp grab plus converted to seconds

Nonce is now returned as a base64 string and included in request header

Also converted timestamp and ttl to string when including them in the header

Added a couple comments and tidied up some nonce logic
2018-10-18 15:35:10 +11:00
Scott Nonnenberg
c5908052ec v1.17.0-beta.3 2018-10-15 17:33:32 -07:00
Scott Nonnenberg
5e5fa13719 v1.17.0-beta.2 2018-10-11 12:50:10 -07:00
sachaaaaa
6d84eb69e7 upgrade node-fetch to 2.2.0 2018-10-09 14:41:14 +11:00
Scott Nonnenberg
3bd95a2ff6 v1.17.0-beta.1 2018-10-03 12:23:30 -07:00
sachaaaaa
33ad509fbf Merge branch 'master' of https://github.com/signalapp/Signal-Desktop into development
# Conflicts:
#	_locales/ar/messages.json
#	_locales/es_419/messages.json
#	_locales/he/messages.json
#	_locales/hi/messages.json
#	_locales/hr/messages.json
#	_locales/kn/messages.json
#	_locales/ko/messages.json
#	_locales/mk/messages.json
#	_locales/sr/messages.json
#	_locales/uk/messages.json
#	_locales/vi/messages.json
#	package.json
2018-10-01 09:46:42 +10:00
Scott Nonnenberg
e8983ea4a4 v1.16.2 2018-09-20 17:07:36 -07:00
Scott Nonnenberg
8cd3db0262 v1.16.2-beta.2 2018-09-20 16:07:20 -07:00
Scott Nonnenberg
79ebec36ca v1.16.2-beta.1 2018-09-20 15:40:24 -07:00
Scott Nonnenberg
ecb126e74c
Custom linter to check code quality (#2753) 2018-09-20 15:24:52 -07:00
Scott Nonnenberg
366401f77a v1.16.1-beta.2 2018-09-17 16:22:15 -07:00
Scott Nonnenberg
cfe561b3eb v1.16.1-beta.1 2018-09-06 16:02:02 -07:00
Scott Nonnenberg
f3b6161c75 v1.16.0-beta.1 2018-08-29 11:01:23 -07:00
Scott Nonnenberg
998c35dcb3 Split configuration into low and high traffic files
Also, we're now handling config ourselves instead of using
electron-config and config dependencies.
2018-08-29 10:40:16 -07:00
Scott Nonnenberg
f59ec92fef Routine update to Electron v2.0.8 2018-08-28 13:54:03 -07:00
sachaaaaa
692362d290 Small rebranding 2018-08-17 16:34:42 +10:00
Scott Nonnenberg
816228fde0 v1.15.4-beta.1 2018-08-10 15:02:43 -07:00
Scott Nonnenberg
61429090ff v1.15.3-beta.1 2018-08-07 19:01:26 -07:00
Scott Nonnenberg
a771546ee8 v1.15.2-beta.1 2018-08-07 08:30:18 -07:00
Scott Nonnenberg
f926a08aa8 v1.15.1-beta.1 2018-08-06 18:37:23 -07:00
Scott Nonnenberg
6e193456f9 Eliminate orphaned external message files on startup
Attachments, visual attachment thumbnails, video attachment screenshots
Quote thumbnails
Contact avatars
2018-08-06 18:08:10 -07:00
Scott Nonnenberg
185c05ceba v1.15.0-beta.10 2018-08-02 22:39:22 -07:00
Scott Nonnenberg
9dd756f96a v1.15.0-beta.9 2018-08-02 19:24:37 -07:00
Scott Nonnenberg
e13f431456 Build libcrypto.a on Ubuntu 14.04 for maximum compatibility 2018-08-02 19:12:18 -07:00
Scott Nonnenberg
fe84e92359 node-sqlcipher update: always build, statically link openssl 2018-08-02 17:32:51 -07:00
Scott Nonnenberg
8833326b08 v1.15.0-beta.8 2018-08-01 13:30:23 -07:00
Scott Nonnenberg
ce2f3bd3c4 Statically compile openssl into sqlcipher for linux targets 2018-08-01 10:58:26 -07:00
Scott Nonnenberg
81df1807e8 v1.15.0-beta.7 2018-07-31 17:46:28 -07:00
Scott Nonnenberg
3105b77475 Migrate to SQLCipher for messages/cache
Quite a few other fixes, including:
  - Sending to contact with no avatar yet (not synced from mobile)
  - Left pane doesn't update quickly or at all on new message
  - Left pane doesn't show sent or error status

Also:
 - Contributing.md: Ensure set of linux dev dependencies is complete
2018-07-31 17:08:45 -07:00
Scott Nonnenberg
fc461c82ce v1.15.0-beta.6 2018-07-27 11:21:18 -07:00
Scott Nonnenberg
8f6f24e958 v1.15.0-beta.5 2018-07-21 15:44:44 -07:00
Scott Nonnenberg
4320b125dd v1.15.0-beta.4 2018-07-20 16:50:48 -07:00
Scott Nonnenberg
e23fcab7e8 v1.15.0-beta.3 2018-07-19 11:08:46 -07:00
Scott Nonnenberg
356fac8d14 v1.15.0-beta.2 2018-07-18 20:01:26 -07:00
Scott Nonnenberg
d97a7eabf8 v1.15.0-beta.1 2018-07-18 14:14:45 -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
a689d430d2 v1.14.1-beta.1 2018-07-13 12:07:02 -07:00
Scott Nonnenberg
d014fa779e v1.14.0-beta.3 2018-07-12 17:05:28 -07:00
Scott Nonnenberg
9b04c8ecf3 v1.14.0-beta.2 2018-07-12 13:05:57 -07:00
Scott Nonnenberg
8776b376f6 Ensure that the production build has permissions_popup_preload.js 2018-07-12 13:03:17 -07:00
Scott Nonnenberg
b385489a44 v1.14.0-beta.1 2018-07-12 11:48:52 -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
e83e10a7d1
Include about_preload.js in production builds (#2485) 2018-07-03 15:03:13 -07:00
Scott Nonnenberg
bd13939548 v1.13.0-beta.2 2018-06-21 16:15:01 -07:00
Scott Nonnenberg
8eeaad8e18 Remove unused export/import functionality 2018-06-21 11:54:01 -07:00
Scott Nonnenberg
4ccddeaccc v1.13.0-beta.1 2018-06-14 17:14:44 -07:00
Scott Nonnenberg
6dd93271d9 v1.12.0-beta.2 2018-05-31 14:22:13 -07:00
Scott Nonnenberg
41c8dbc4f9 v1.12.0-beta.1 2018-05-23 17:29:50 -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
2988da0981 Turn on all of Microsoft's recommend lint rules
Biggest changes forced by this: alt tags for all images, resulting in
new strings added to messages.json, and a new i18n paramter/prop added
in a plot of places.

Another change of note is that there are two new tslint.json files under
ts/test and ts/styleguide to relax our rules a bit there. This required
a change to our package.json script, as manually specifying the config
file there made it ignore our tslint.json files in subdirectories
2018-05-23 16:26:47 -07:00
Scott Nonnenberg
91c247ef8d Move all forks to @scottnonnenberg-signal account 2018-05-23 12:26:17 -07:00
Scott Nonnenberg
e02887565b
Update to electron v2.0.1 (#2401)
* Remove extra parenthesis causing warnings on latest chromium

* Update to electron 2.0.1

* Move all @types dependencies to devDependencies

* Update electron-builder/electron-updater

* Update to Node.js 8.9.3 to match Electron 2.0.1
2018-05-23 12:17:58 -07:00
Scott Nonnenberg
877cbfc338 v1.11.0-beta.5
Fix broken CSP
2018-05-14 16:45:50 -07:00
Scott Nonnenberg
e52c7ca2f3 v1.11.0-beta.4
Move to react for newlines, emoji, and links in message body
2018-05-14 16:09:37 -07:00
Scott Nonnenberg
4e5c8965ff Move to react for newlines, emoji, and links in message body 2018-05-14 16:09:37 -07:00
Scott Nonnenberg
721935b0c8 v1.11.0-beta.3
Update link handling
2018-05-11 13:52:24 -07:00
Scott Nonnenberg
d8e0a489b2 v1.11.0-beta.2
Notification Improvements (#2364)
  - Fixed: The change for production didn't full make it into v1.11.0-beta.1 - this change restores the code which removes the old notification when we add a new one
  - Fixed: Notifications could be orphaned in notification center if they were added/removed quickly
  - Fixed: Notifications weren't removed properly when read on a linked device

Dev: Better logging when we receive a read sync from a linked device (#2364)
2018-05-10 18:07:50 -07:00
Scott Nonnenberg
d9685178d2 v1.11.0-beta.1
Feature: Receive contact (#2349, #2359)

Fixed: Sometimes clicks on quoted message wouldn't work (#2350)

Fixed: In dark theme, it was hard to see a message's triple-dot menu on hover - thanks @PunkChameleon (#2334)

Fixed: Unsupported image and video types were missing from media pane (#2351)

Fixed: On small screens, the media lightbox view would show media off-screen (#2351)

Notification improvements
  - Remove all on remote read, on focus, on exit
  - Show multi-message notifications like '5 new messages'

Media Gallery: A number of small visual fixes (#2351)

Emoji pane: Can now dismiss it by pressing escape key - thanks @tommypacker (#2354, #2357)

Update translations (#2328, #2352)

Dev:
  - Windows 7: Use Electron-native notifications (#2338, #2330)
  - Improve Logging For Disappearing Messages (#2332)
  - Prettier: Continue expanding its coverage of app (#2339, #2324)
  - Document Translations Setup + Remove Unused Strings (#2329)
  - Make Protocol Buffers available to commonjs code (#2347)
2018-05-10 12:16:43 -07:00
Scott Nonnenberg
41be7f126b Visuals for embedded contacts as well as contact detail screen 2018-05-07 19:09:55 -07:00
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.
2018-05-07 21:53:41 -04:00
Daniel Gasienica
60077d0b7b Use protocol buffer module for libtextsecure 2018-05-07 21:53:40 -04:00
Daniel Gasienica
daa4a3d63f Compile all protocol buffers 2018-05-07 21:53:40 -04:00
Daniel Gasienica
086c64deb8 Add yarn clean-protobuf command 2018-05-07 21:53:40 -04:00
Daniel Gasienica
55f85465c6 Remove generated protobuf as part of yarn clean-transpile 2018-05-07 21:53:40 -04:00
Daniel Gasienica
cb09da0f63 Run all build steps in CI 2018-05-07 21:53:40 -04:00
Daniel Gasienica
2d95745d56 Add yarn build-protobuf command 2018-05-07 21:53:39 -04:00
Daniel Gasienica
58399549c3 Add protobufjs dependency 2018-05-07 21:53:39 -04:00
Daniel Gasienica
8ee250d37e Prettier: Format CSS, SCSS, and JSON 2018-05-04 16:32:08 -04:00
Daniel Gasienica
38b23c6627 Add @types/semver 2018-05-02 20:01:56 -04:00
Daniel Gasienica
0b4c60c272 Add @types/sinon 2018-05-02 19:58:33 -04:00
Daniel Gasienica
e3191c9017 Remove node-notifier 2018-05-02 19:58:33 -04:00
Scott Nonnenberg
754d65ae2e Let's make it all pretty, shall we?
We missed a couple directories with previous attempts to turn this on
globally: app/ and libtextsecure/

Not to mention files in places we didn't expect: ts files that weren't
in the ts directory!

This turns prettier on for every file we care about (js, ts, tsx, md)
everywhere in the project but for a few key parts.
2018-05-02 13:40:57 -07:00
Scott Nonnenberg
322d307655 Turn on prettier support for markdown files, update all files 2018-05-01 16:06:57 -07:00
Scott Nonnenberg
cea77418ec Remove unused asarl package.json script, rearrange a little 2018-05-01 09:49:22 -07:00
Scott Nonnenberg
167f54f37f Remove unused build assets
Linux: deb (dropped zip)
Mac: zip (dropped dmg)
Windows: exe (dropped zip)

We can always re-add if people are relying on these things. But our
download links all point to these assets, so we'll generate and upload
only these for now.
2018-05-01 09:47:10 -07:00
Scott Nonnenberg
58fddc4e9d Remove electron builder support for publishing to S3
We do this ourselves now.
2018-05-01 09:46:36 -07:00
Scott Nonnenberg
50eb82fa6a package.json: Remove all but the scripts needed for modern build 2018-04-30 22:36:21 -07:00
Scott Nonnenberg
af94c67e42 v1.10.0-beta.1
Media Gallery showing all attachments in a given conversation (#2291, previous: #2236)

Quotes:
  - Show 'You' in Android theme instead of your own contact name (#2312)
  - Show thumbnails for quotes of messages with video attachments (#2293)

Video attachments: show first frame preview in composition area (#2293)

Increase speed of migration to move attachments to disk from database (#2314)

Dev:
  - Add comments clarifying our mechanisms for stripping EXIF info (#2313)
  - Move to prettierjs to format our code (#2303)
  - Fix break in styleguide; make filesize/Signal.Util.GoogleChrome available (#2302)
  - Remove duplicate entry from .gitignore (#2271)
2018-04-30 17:06:44 -07:00
Daniel Gasienica
522bd57ec3 Run yarn lint-windows without Prettier for AppVeyor
We need to figure out how to run globs on Windows.
2018-04-30 18:13:30 -04:00
Daniel Gasienica
1d867d784d Decouple yarn format from yarn format-check
Checking if that fixes Windows CI issue.
2018-04-30 17:33:58 -04:00
Daniel Gasienica
428984c8e2 Include Prettier as part of yarn lint 2018-04-30 16:53:34 -04:00
Daniel Gasienica
97dfffd2b0 Add .prettierrc.js 2018-04-30 16:53:34 -04:00
Daniel Gasienica
aa7665e497 Run Prettier on all source files 2018-04-30 16:52:43 -04:00
Daniel Gasienica
1bf3ab630c Add eslint-config-prettier 2018-04-30 16:52:43 -04:00
Scott Nonnenberg
b9b85a0030
v1.9.0-beta.1
Send quoted replies via hover menu on message (#2284, #2292)

Fixed: Linking a new iOS device would not initially show iOS theme (#2284)

Fixed: In iOS theme, narrow images would result in a broken chat bubble (#2273, #2282)

Dev:
  - Fix beta install instructions in readme for debian-based linux (#2262)
  - Media Gallery: Phase 1 - currently disabled (#2236)
2018-04-25 13:01:54 -07:00
Daniel Gasienica
5ec8b1c6e1 Add @types/jquery 2018-04-25 15:24:51 -04:00
Daniel Gasienica
dea56c0008 Autoformat TSX files 2018-04-25 15:24:51 -04:00
Daniel Gasienica
2fae89f0e8 Add trailing commas to autoformatted code 2018-04-25 15:24:51 -04:00
Daniel Gasienica
347fc8287a Add yarn format to autoformat code
Uses Prettier under the hood. Requires opt-in via `@prettier` pragma:
https://prettier.io/docs/en/options.html#require-pragma
2018-04-25 15:24:51 -04:00
Daniel Gasienica
56a5006392 Remove duplicate @types/lodash dependency 2018-04-25 15:24:51 -04:00
Daniel Gasienica
3a8c3ccdab Add prettier 2018-04-25 15:24:51 -04:00
Daniel Gasienica
8ef04cb1fd Move @types/* dependencies to devDependencies 2018-04-25 15:24:51 -04:00
Daniel Gasienica
10bede85c9 Add filesize dependency 2018-04-25 15:24:50 -04:00
Daniel Gasienica
9533c09707 Add @types/lodash 2018-04-25 15:24:50 -04:00
Scott Nonnenberg
a7d44d3344
Backup and end-to-end test! 2018-04-20 15:24:04 -07:00
Scott Nonnenberg
3dbc550db2
v1.8.0-beta.1
Receive quoted replies (#2244)

iOS theme: one bubble for both attachment and message contents (#2244)

Improve URL Auto-Linking In Messages (#2240)

Redact More Variants Of Paths In Stack Traces (#2229)

Fixed: Conversation message preview would sometimes continue to show after message disappeared (1206b3c448)

Dev: Introduce React, TypeScript, TSLint and React-StyleGuidist (#2219 and #2232)
2018-04-16 13:14:18 -07:00
Scott Nonnenberg
21bf02c94d
Fixed examples in Quote.md, rough Android visuals 2018-04-13 18:05:44 -07:00
Daniel Gasienica
560cc4e149 Set dynamic parameter last 2018-04-11 19:46:23 -04:00
Daniel Gasienica
9d159da79c Add Microsoft contributed TSlint rules: tslint-microsoft-contrib 2018-04-11 19:45:31 -04:00
Daniel Gasienica
55fc21505e Rename ts/test to ts/styleguide 2018-04-11 16:36:42 -04:00
Daniel Gasienica
99dbdc3506 Include compiled TypeScript JavaScript files in build 2018-04-11 16:36:42 -04:00
Daniel Gasienica
d6436de3bd Organize npm scripts
Combine `yarn grunt jshint` and `yarn grunt jscs` into `yarn grunt lint`.
2018-04-11 16:36:42 -04:00
Daniel Gasienica
6f4d0e1449 Use project for TSLint 2018-04-11 16:36:42 -04:00
Daniel Gasienica
15d221ae0e Simplify testing and linting
Separate linting from testing as follows:

- `yarn jscs`: Run JSCS.
- `yarn jshint`: Run JSHint.
- `yarn lint`: Run all linters, i.e. ESLint, TSLint, JSHint, and JSHint.

- `yarn test-node`: Run Mocha tests in Node.js environment.
- `yarn test-electron`: Run tests in Electron environment via Grunt.
- `yarn test`: Run all tests.

CI
- Align Travis and AppVeyor scripts as much as possible.
- Run linting before tests to fail fast.
- Run Node.js (headless and fast) tests first.
- Run Electron tests last (Travis seems to require custom setup in `travis.sh`).
2018-04-11 16:36:42 -04:00
Daniel Gasienica
d6b40a3e94 Explicitly point to TSLint configuration
AppVeyor seems to ignore our configuration.
2018-04-11 16:36:42 -04:00
Daniel Gasienica
9d41b86162 Remove escaping from linkText
We leverage jQuery’s HTML escaping in `$.html(…)`.
2018-04-11 16:36:42 -04:00
Daniel Gasienica
d9381c543e Add linkify-it dependency 2018-04-11 16:36:42 -04:00
Daniel Gasienica
7d4ef9315b Add yarn test-ts 2018-04-11 16:36:42 -04:00
Daniel Gasienica
6f8dee402d Add @types/mocha 2018-04-11 16:36:42 -04:00
Daniel Gasienica
7ac4bee959 Add @types/chai 2018-04-11 16:36:42 -04:00
Daniel Gasienica
78ba4eddc1 Add @types/lodash 2018-04-11 16:36:42 -04:00
Daniel Gasienica
f5641fe6d6 Add link-text dependency
It only has the minimum required dependencies:
- `linkify-it`: Best-in-class link detection library with support for
                Unicode/IDN.
- `escape-html`: Standalone dependency for escaping HTML.
- `uc.micro`: Standalone dependency of Unicode data files.
2018-04-11 16:36:42 -04:00
Scott Nonnenberg
c6c3b65bbc
Introduce React, TypeScript, TSLint and React-StyleGuidist (#2219)
Quite a bit of change here.

First, the basics:

- New dependencies were added: react, typescript, tslint, and react-styleguidist
- A new npm script: transpile. It uses typescript to process .tsx files in js/react, putting .js files next to the original file. It's part of the watch functionality of grunt dev as well as the default task run with just grunt (used to build the app prior to release). A lighter-weight to get watch behavior when just working on React components is to run yarn transpile --watch.
- yarn run clean-transpile will remove generated .js files


Style guide via react-styleguidist. Example site: https://react-styleguidist.js.org/examples/basic/

- Start with yarn styleguide
- Component.md files right next to the .tsx file
- jsdoc-style comments are picked up and added to the generated part of the styleguide - the overall summary and a table listing methods and properties of the component
- It has hot-reloading!
- It uses webpack, which means that our app now pulls in webpack though we don't use it to generate anything for the production app.
- I did a bunch of work to enable the use of Backbone views in this context, which will allow us to move smoothly from the old world to the new. First, add all the permutations in the old way, and then slowly start to re-render those same views with React.

A bit of dependency cleanup to enable use in React components:

- moment was moved from our Bower dependencies to our npm dependencies, so it can be used in React components not running in a browser window.
- i18n was moved into the new commonjs format, so it can be used in React components even if window is not available.

Lastly, a bit of Gruntfile cleanup:

- Removal of Chrome App-era modifications of background.js
- Make jshint/jscs watch more targeted, since more and more we'll be using other tools
2018-04-06 08:13:00 -07:00
Scott Nonnenberg
23537546fe
Big refactor: ts/ directory for all typescript, including react
Split out test-specific and general utility react components too.

And moved our test/legacy* files for the Style Guide into a styleguide/
subdirectory of test/.

I think we'll be able to live in this directory structure for a while.
2018-04-05 15:30:40 -07:00
Scott Nonnenberg
1052341d79
Fix tslint errors and add tslint to CI task in package.json 2018-04-05 08:37:04 -07:00
Scott Nonnenberg
be91a89d68
Parse theme from querystring, put on util. Moment from require()
We also fully set up i18n and put it on util as well as making
it available on windows.i18n for Backbone views.
2018-04-05 08:31:43 -07:00
Scott Nonnenberg
ef6a0c1162
v1.7.0-beta.3
Update to electron 1.8.4 (#2186)

Migrate all attachments from IndexedDB to file system in the background (#2208, #2193, #2165, #2162, #2129)

Save attachments to disk when importing Chrome app export (#2212)

Fixed: Read receipts setting would not be synchronized along with re-link (#2218)

Fixed: Clicking conversation in left pane when already selected would remove focus on message composition field - thanks
@colefranz! (#2032)

Fixed: Searching for the phone number of an existing contact, then selecting 'start conversation' would erase contact details (#2191)

Fixed: Selecting Settings menu option multiple times would open multiple instances of settings view - thanks @navdeepsinghkhalsa (#2167)

Dev:
  - Relax Node.js version requirements (#2203)
  - Fix a few typos in documentation - thanks @Vinnl (#2171)
  - Update issue template to mention that translation should be via Transifex (#2157)
2018-04-04 17:13:23 -07:00