Commit graph

55 commits

Author SHA1 Message Date
audric e9412df60e fix lint and steal autofocus on registration to seed 2021-08-06 15:59:38 +10:00
Audric Ackermann e8f0c4aaec
move libloki to webworker and remove unused stuff in it 2021-07-13 11:16:59 +10:00
Audric Ackermann 8760a59875
nodefetch headers as on mobile + cleanup worker code 2021-07-09 15:31:10 +10:00
Audric Ackermann ca331b95a6
remove coverage unused 2021-07-05 10:26:40 +10:00
Audric feab29a4fe remove file server submodule 2021-06-23 13:36:58 +10:00
Audric Ackermann 71e1f1e143
ignore ts generated files under subdirectory too 2020-11-25 11:51:14 +11:00
Audric Ackermann c5bc97013d
session-file-server submodule from official repo 2020-05-26 17:36:25 +10:00
Audric Ackermann f8cc26eacb
ignore submodule from prettier and eslint 2020-05-26 17:29:27 +10:00
Mikunj Varsani 24a3e05154
Revert "Revert "Clean up unused dependencies."" 2020-04-03 16:41:53 +11:00
Vince 5ff7476359
Revert "Clean up unused dependencies." 2020-04-03 16:20:49 +11:00
Mikunj d671ce0055 Remove phone number libraries 2020-03-31 10:44:00 +11:00
Mikunj 012575be35 Remove calling sc_reduce32 when deriving a keypair from a mnemonic seed.
This is the reason that seeds across desktop and mobile devices would never restore to the same keypair. This function was there from the initial messenger days and with further discussion with Maxim, we deemed calling this function an unnecessary step for generating a keypair. There are no security implications for this change as we generate keypairs the exact same way as Signal does.

The biggest downside to this change however is that if you try to restore a desktop device with a seed from before this change, that seed will generate a completely different key pair and thus a different session ID.
This will only affect users who plan to restore any device from the seed of a desktop device before this change.
2020-03-06 13:38:18 +11:00
Mikunj 8808100796 Merge signal-1.24.0
# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	background.html
#	config/default.json
#	config/production.json
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_view.js
#	js/views/inbox_view.js
#	js/views/settings_view.js
#	main.js
#	package.json
#	test/index.html
#	ts/components/conversation/ContactName.tsx
#	yarn.lock
2019-04-18 12:45:19 +10:00
Scott Nonnenberg c8ea2e9463 Download and install updates without the help of electron-updater 2019-04-05 17:18:37 -07: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
Mikunj 6bd2d3962e Linted files 2019-01-16 16:18:08 +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
Mikunj 0a88f337d5 Merge branch 'sig-development' into merge/signal 2018-11-12 10:06:34 +11:00
Scott Nonnenberg dbf0be2db5 eslintify all test files 2018-11-07 16:34:38 -08: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 02fbea96c0 Move base64 conversions off of the main thread 2018-08-16 17:39:30 -07:00
Scott Nonnenberg 0774ba2903 Eslintify all of libtextsecure 2018-07-21 14:52:43 -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 37ebe9fcec eslintify libtextsecure/api.js 2018-05-31 13:25:45 -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
Daniel Gasienica 06e3f09732 ESLint: Add js/notifications 2018-05-02 19:18:33 -04:00
Daniel Gasienica f770a2ce43 ESLint: Ignore generated files 2018-04-30 16:52:43 -04:00
Daniel Gasienica 41fe50553f Replace Backbone saveFile with Attachment.save 2018-04-27 16:31:42 -04:00
Daniel Gasienica 3727205606 Organize ESLint file list 2018-04-27 16:31:42 -04:00
Scott Nonnenberg c3acf43c47
Eslintify test/backup_test.js 2018-04-20 15:24:04 -07:00
Scott Nonnenberg d0b11c59f5
Eslintify conversation_view.js 2018-04-20 15:23:49 -07:00
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!
2018-04-13 18:10:47 -07:00
Scott Nonnenberg e69586200a
Unleash eslint on message_receiver.js - lots of change 2018-04-13 18:05:45 -07:00
Scott Nonnenberg 05303233fb
window.Signal.React -> window.Signal.Components 2018-04-05 16:10:59 -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 76be13552f
js/i18n.js -> js/modules/i18n.js 2018-04-05 12:51:29 -07:00
Scott Nonnenberg 1326b26585
Full styleguide now available via yarn styleguide
Due to a number of hacks, the style guide can be used to show Backbone
views. This will allow a smooth path from the old way of doing things to
the new.
2018-04-04 16:08:38 -07:00
Scott Nonnenberg 893fb1cb9e
Introduce React/TypeScript/TSLint into app for new UI components
npm run transpile
  Works on files under js/react/
  Outputs files right next to the .tsx file

This is part of our `grunt dev` task, as well as the default grunt task,
which does everything else necessary to get a raw git checkout ready to
run.
2018-04-04 16:08:27 -07:00
Scott Nonnenberg f86a6ef752
Update style of i18n, pull it in via preload instead of .html 2018-04-04 16:03:10 -07:00
Daniel Gasienica 6e6b93d917 Run ESLint on preload.js 2018-04-03 15:03:57 -04:00
Daniel Gasienica 97e3b49a36 Whitelist js/views/message_view.js for ESLint 2018-03-26 16:38:34 -04:00
Daniel Gasienica f031ac3126 Remove duplicate ESLint ignore entry 2018-03-26 16:38:34 -04:00
Scott Nonnenberg c01b343bd4
Code formatting updates for backup.js 2018-03-20 11:52:42 -07:00
Daniel Gasienica 7e3cc432d6 Whitelist js/database.js for ESLint 2018-03-19 19:27:59 -04:00
Scott Nonnenberg 256b87aa7a
Refactor newly-added ClearDataView in settings_view.js 2018-03-14 14:42:15 -07:00
Scott Nonnenberg 3527740598
Format updates to js/database.js 2018-03-14 14:42:14 -07:00