Commit graph

2656 commits

Author SHA1 Message Date
sachaaaaa
4b9fcb98d4 Linting and other housekeeping stuff 2018-11-01 11:10:30 +11:00
sachaaaaa
d91f04930c
Merge pull request #21 from loki-project/bugfix/pow-nonce-calc
Bugfix/pow nonce calc
2018-10-31 18:38:22 +11:00
Beaudan
4598fd222a Cleaned up newNonce stuff. Now doing target calculation with BigIntegers 2018-10-31 16:08:46 +11:00
sachaaaaa
7b1fbe362e Allow choosing language for mnemonic seed 2018-10-31 15:18:48 +11:00
sachaaaaa
bbabeb34b8
Merge pull request #18 from sachaaaaa/mnemonic
Allow registering using a mnemonic word list
2018-10-31 13:56:16 +11:00
Beaudan
d4180b3ca6 Some syntax tidying up, plus fixed bug with message data not being a uint8array after IPC message 2018-10-29 11:43:06 +11:00
sachaaaaa
e1ffe582c3 Prompt user when an incoming friend request is received 2018-10-25 15:18:32 +11:00
sachaaaaa
143b1e883d
Merge pull request #17 from sachaaaaa/lock_input_friend_request
Lock input after friend request is sent
2018-10-25 10:47:38 +11:00
sachaaaaa
1ce29d77c3 Moved mnemonic to node side. Added sc_reduce32 (asm) to generate privkey. Moved mnemonic languages to separate files. 2018-10-24 17:04:54 +11:00
sachaaaaa
1cf8710127
Merge pull request #16 from sachaaaaa/friend_response
Handle prekeys in incoming friend request
2018-10-24 16:57:20 +11:00
sachaaaaa
a418a9d23b allow registering using a mnemonic word list (seed used as privKey for now) 2018-10-24 10:13:54 +11: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
f21f83a163 Conversations have blue avatar backgrounds if no image provided 2018-10-18 11:39:23 -07:00
Beaudan
dfa8b59bc3 Using let and const properly, updated number to uint function, general cleaning 2018-10-18 17:30:50 +11:00
sachaaaaa
025d13a72b Add keyId index for contact prekeys and allow retrieving prekeys for a specific pubkey and keyid 2018-10-18 16:46:33 +11: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
sachaaaaa
5602f4bfff Change placeholder in discussion 2018-10-18 15:09:02 +11:00
sachaaaaa
d4d0d05adf Lock text input while waiting for friend request reply 2018-10-18 13:42:06 +11:00
sachaaaaa
886f47b8e7
Prekeys sending: first pass (#12)
* add 'recipient' attribute in prekey database to allow binding a prekey to a recipient pub key

* Attach a PreKeyBundleMessage to the ContentMessage in fallback encryption mode

* Skip generating 100 prekeys upon registration

* Store the signed key signature in database
2018-10-18 12:12:44 +11:00
Scott Nonnenberg
b9cc17b81a inboxView: Ensure Conversation exists for our own number 2018-10-17 17:17:01 -07:00
Scott Nonnenberg
a24d9f9979 Ensure that file is not attached if we've filtered it 2018-10-17 14:30:19 -07:00
sachaaaaa
d5ef0cfb03 Revert changes and rename keysPending to keyExchangeCompleted 2018-10-17 13:57:29 +11:00
Scott Nonnenberg
7532f397ea Keep object stores after conversations migrate to SQLCipher 2018-10-15 12:24:43 -07:00
Scott Nonnenberg
8edfbdcee5 Longer timeout for orphaned file cleanup 2018-10-15 11:57:00 -07:00
sachaaaaa
ecd300d68d Change keysPending flag to keyExchangeStatus in conversation model 2018-10-15 16:55:39 +11:00
Scott Nonnenberg
7d9711ba65 Restore iOS-specific theme; colors on left in android theme 2018-10-11 11:42:18 -07:00
Scott Nonnenberg
ca61c9cb85 Warnings for dangerous files 2018-10-09 13:48:32 -07:00
Scott Nonnenberg
3b8f934741 On startup, if we've just upgraded to a new version, contact sync 2018-10-09 13:48:03 -07:00
Scott Nonnenberg
59d58aaab5 Allow GIFs larger than 6MB 2018-10-09 13:47:36 -07:00
sachaaaaa
6fe70b9b85 Send outgoing messages as raw bytes (Uint8Array) and moved recipient & ttl to header 2018-10-09 14:43:55 +11:00
Scott Nonnenberg
584e932891 Close recorder on switch away, only send after finish clicked 2018-10-05 15:16:22 -07:00
Scott Nonnenberg
f38410976d Delete conversation external files on deletion 2018-10-01 18:18:37 -07:00
Scott Nonnenberg
2cfbfe477a Better handle large numbers of messages in cache on startup 2018-10-01 18:18:37 -07:00
Scott Nonnenberg
a8e12d0771 Add user's avatar to the top left of the screen 2018-10-01 18:18:37 -07:00
Scott Nonnenberg
8f3e3b7aaf Update to new design for avatars: individual/group icons/colors
And two initials.
2018-10-01 18:18:37 -07:00
Scott Nonnenberg
10c53bddb0 Move to new colors, switch incoming/outgoing colors 2018-10-01 18:18:37 -07:00
Scott Nonnenberg
cd60bdd08a Move conversations to SQLCipher 2018-10-01 18:18:37 -07:00
sachaaaaa
d521795cf8 add helper to set the keysPending flag for a discussion 2018-10-02 08:53:59 +10:00
sachaaaaa
22a86b5351 store key bundle status in conversation model 2018-10-01 17:49:39 +10: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
3464eb65b8 Keep conversation.lastMessage in memory 2018-09-20 15:25:54 -07:00
Scott Nonnenberg
814b9cf26a Only accept 'you left group' messages when group blocked 2018-09-17 15:58:27 -07:00
Scott Nonnenberg
9c399624cc Support for blocking groups on mobile, via group/blocked syncs 2018-09-14 16:25:43 -07:00
Scott Nonnenberg
46dac94ab8 Pop toast on attempted attach if image attachment is too large 2018-09-05 17:48:43 -07:00
Scott Nonnenberg
d0c4152d99 backup.js: Remove references to nonexistent i18n strings 2018-09-05 14:17:38 -07:00
Scott Nonnenberg
ea8e76d9de MessageView: Only re-render on change of key conversation fields 2018-09-05 14:17:38 -07:00
Scott Nonnenberg
8584a79352 Don't treat sends to a group with unregistered users as an error 2018-09-05 14:17:38 -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
sachaaaaa
a6b4215b1f changed sendMessage request from PUT to POST 2018-08-23 15:29:49 +10:00
sachaaaaa
8bb7185c7a make loki_message_api::sendMessage use async/await 2018-08-23 15:04:59 +10:00