Commit graph

4530 commits

Author SHA1 Message Date
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
931ea56191 Merge tag 'v1.17.0-beta.4' 2018-10-22 17:08:21 -07:00
BeaudanBrown
bb03025333
Merge pull request #13 from loki-project/proof-of-work
Proof of work
2018-10-23 10:21:58 +11:00
Scott Nonnenberg
f01c5f3e68 v1.17.0-beta.4 2018-10-18 16:07:52 -07:00
Scott Nonnenberg
2b5f6d8b5e Ensure that blue group avatars are preserved in dark theme 2018-10-18 15:41:05 -07:00
Scott Nonnenberg
fbaef50c4a Android theme: Incoming quotes take color from containing message 2018-10-18 11:57:10 -07:00
Scott Nonnenberg
f21f83a163 Conversations have blue avatar backgrounds if no image provided 2018-10-18 11:39:23 -07:00
Scott Nonnenberg
4514152320 Fix lint errors 2018-10-18 10:15:34 -07:00
Beaudan
dfa8b59bc3 Using let and const properly, updated number to uint function, general cleaning 2018-10-18 17:30:50 +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
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
afa7f4b084 Add ca language 2018-10-17 17:30:18 -07: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
54201d6665 fix bad merge: missing FallBackDecryptionError 2018-10-17 16:10:13 +11:00
sachaaaaa
eb488f9305 fix bad merge in libloki-protocol 2018-10-17 15:30:30 +11:00
sachaaaaa
b432700fe8
Merge pull request #11 from sachaaaaa/key_exchange_status
Change keysPending flag to keyExchangeCompleted in conversation model
2018-10-17 15:21:10 +11:00
sachaaaaa
d5ef0cfb03 Revert changes and rename keysPending to keyExchangeCompleted 2018-10-17 13:57:29 +11:00
sachaaaaa
377ee009c4
Merge pull request #10 from sachaaaaa/ignore_failed_decryption_messages
Ignore friend request messages that couldn't be decrypted
2018-10-17 13:19:36 +11:00
Scott Nonnenberg
c5908052ec v1.17.0-beta.3 2018-10-15 17:33:32 -07:00
Scott Nonnenberg
14651a39bd Localization updates 2018-10-15 17:32:32 -07:00
Scott Nonnenberg
b5104934a7 v1.16.3 2018-10-15 17:12:06 -07:00
Scott Nonnenberg
10bd12d622 Lint fixes 2018-10-15 16:59:38 -07:00
Scott Nonnenberg
fc0253e9b5 Lint fixes 2018-10-15 16:40:39 -07:00
Scott Nonnenberg
76e72f871a Better handle large numbers of messages in cache on startup 2018-10-15 16:32:35 -07:00
Scott Nonnenberg
7532f397ea Keep object stores after conversations migrate to SQLCipher 2018-10-15 12:24:43 -07:00
Scott Nonnenberg
655d9d1222 Longer timeout for orphaned file cleanup 2018-10-15 11:57:28 -07:00
Scott Nonnenberg
bc0ec92ad2 Tests and increase consistency for isFileDangerous calls 2018-10-15 11:57:00 -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
sachaaaaa
0283c6428f Ignore friend request messages that could not be decrypted 2018-10-15 14:03:20 +11:00
Scott Nonnenberg
5e5fa13719 v1.17.0-beta.2 2018-10-11 12:50:10 -07:00
Scott Nonnenberg
0850dc368a Lint fixes 2018-10-11 12:24:58 -07:00
Scott Nonnenberg
7d9711ba65 Restore iOS-specific theme; colors on left in android theme 2018-10-11 11:42:18 -07:00
sachaaaaa
583fb2e6c6
Merge pull request #8 from sachaaaaa/send_as_bytes
Send outgoing messages as bytes
2018-10-11 14:13:43 +11:00
sachaaaaa
9677f8b648
Merge branch 'development' into send_as_bytes 2018-10-11 14:13:31 +11:00
sachaaaaa
b52dac98b7
Merge pull request #7 from sachaaaaa/fallback_decrypt
Decrypt "friend request" messages using fallback encryption. Move logic into libloki.js
2018-10-11 14:10:44 +11: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
Scott Nonnenberg
73f8722c8d Fix left border of to-be-sent quote 2018-10-09 13:47:36 -07:00
Scott Nonnenberg
15a8ffbff0 Fix timer colors 2018-10-09 13:47:36 -07:00
sachaaaaa
be29ea725a revert libsignal-protocol and convert binary-encoded string to Uint8Array later down the line 2018-10-09 15:54:09 +11:00
sachaaaaa
54e238dee8 changed mock http server to display received bytes 2018-10-09 14:44:22 +11:00
sachaaaaa
6fe70b9b85 Send outgoing messages as raw bytes (Uint8Array) and moved recipient & ttl to header 2018-10-09 14:43:55 +11:00
sachaaaaa
6d84eb69e7 upgrade node-fetch to 2.2.0 2018-10-09 14:41:14 +11:00
sachaaaaa
9da4e94276 print outgoing messages as bytes, that can be injected in the mock socket server for debugging 2018-10-08 15:14:38 +11:00
sachaaaaa
60b54d59c9 update mock socket server to send friend-request message (fallback encryption) 2018-10-08 15:04:14 +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