Commit Graph

819 Commits (28b548525ea9e075b19f0d57f36cd93250ffe341)

Author SHA1 Message Date
sachaaaaa b03548637c Fix getKeysForNumber when staleDevices is not empty 7 years ago
Beaudan b515fc41e7 Removed some repetetive logs, made the polling time a variable and lower the polling time and PoW difficulty if we are in debug mode 7 years ago
Beaudan b65d6a6d2c Refactor friend request status to use a state enum variable 7 years ago
sachaaaaa 7e783639fd Fix inexistent enum value for Prekey Type 7 years ago
Mikunj 9fd822a7e3 Remove preKeys on friend request decline. 7 years ago
Mikunj 0dabce9e28 Remove preKeyBundle from message.
Always save preKeyBundles if we receive them.
Always override preKeys when saving.
7 years ago
Mikunj 149da3374a Fix pkb not being saved on the first cipher message. 7 years ago
Mikunj 0404f42738 Merge commit 'dbdd52b4eb11ca71adcae547c931b5cfda1ada11' into fix/pkb-type 7 years ago
sachaaaaa dbdd52b4eb
Merge pull request #50 from Mikunj/fix/friend-request
Friend request fixes
7 years ago
Mikunj 05f8a1c43a Handle pkb friend request accept. 7 years ago
Mikunj 4bb93e6e3c rename sendEmptyMessageWithPreKeys to sendFriendRequestAccepted. 7 years ago
Mikunj bd15f426f9 Attack a type to preKeyBundleMessage. 7 years ago
Mikunj f29a515fdf Fix up typos. 7 years ago
Mikunj 8a0b8e1f00 Store the state of the friend request inside the conversation. 7 years ago
Mikunj 484efd34a3 Added friend request message expiration. 7 years ago
Mikunj db1145c0ce Fix handling empty content. 7 years ago
sachaaaaa ccb5ff79d4 Use correct log level in development mode and use log.debug() for some of the reoccurring logs 7 years ago
Mikunj dba6a36e83 removed old unused code. 7 years ago
Mikunj 75219966a7 Fixed preKeyBundle decryption. 7 years ago
Mikunj b21a7197f7 Fix preKeyBundle not sending. 7 years ago
Mikunj 110387508f UI fixes. 7 years ago
Mikunj 4ebdfab633 Update handling of new message logic. 7 years ago
Mikunj 6c5c95d956 Added preKey decryption. 7 years ago
Mikunj 1264630649 Attach preKeyBundle outside of the message content. 7 years ago
Mikunj cf3e9716ed Update new conditions for friend accepted and key exchange complete in conversations model. 7 years ago
Beaudan ff3cc7a315 Review changes 7 years ago
Beaudan 489ec8fc65 Heap of linting, eslint warning/error removal, and fixed a couple small bugs found along the way
Created new table to store the received message hashes. Checking this table when receiving messages to look for duplicates. Should be cleared of expired messages on app start and every hour after

Removed id which was not needed for seen messages. Refactored filter logic into function and found function name error

create unique index for contact prekeys (to allow using REPLACE)

Fixed lint stuff that merge brought back
7 years ago
sachaaaaa 78d39ac177
Merge pull request #41 from Mikunj/fix/friend-notification
Friend Notifications
7 years ago
Mikunj 17e5c861a1 Fixed review issues.
Fixed lint error.
7 years ago
sachaaaaa 82a09d46d7
Merge pull request #42 from sachaaaaa/restore_padding
restore ciphertext padding
7 years ago
Mikunj ece266fffd Added showing pow icon. 7 years ago
sachaaaaa 847401e49a restore ciphertext padding 7 years ago
sachaaaaa 9f101d9381
Merge pull request #40 from Mikunj/merge/signal
Merge Signal 1.18.0
7 years ago
Mikunj 745d0e82d4 Added unread count badge . 7 years ago
sachaaaaa 5a428af873 Restore incoming Signal decryption to fix 'Illegal wire type for field Message.Field .signalservice.Content.preKeyBundleMessage' 7 years ago
Mikunj c0a21f60c0 Fix function issue. 7 years ago
sachaaaaa 4a31c1640f Missing callback argument for recursive calls in http-resources 7 years ago
sachaaaaa dc0a70b6d0 fix copy/pasta mistake 7 years ago
Mikunj 4d3fb17e61 Merge branch 'sig-development' into merge/signal 7 years ago
sachaaaaa 6c6b0a4b92
Merge pull request #37 from sachaaaaa/fix_network_status_warning
Make network status warning work with HTTP polling
7 years ago
sachaaaaa 5bcf63e592
Merge pull request #39 from BeaudanBrown/last-hash
Last hash
7 years ago
Beaudan 9731c9e086 Comment out some signal server based code causing errors. Return before trying to unpad message because they aren't being padded in the first place 7 years ago
Mikunj 245ae721c7 Fix checking for when a friend request was accepted. 7 years ago
Mikunj 3389b1d457 Fixed the way preKeyBundle is stored in message. 7 years ago
Mikunj 688f275262 pass in source, sourceDevice, timestamp and receivedAt when adding a friend request. 7 years ago
sachaaaaa 7e9016f510 Make network status warning work with HTTP polling 7 years ago
BeaudanBrown bd0ce981dd
Merge pull request #34 from sachaaaaa/classify
ES2015 classes for LokiServer and FallBackSessionCipher
7 years ago
sachaaaaa ad1cf94526 ES2015 classes for LokiServer and FallBackSessionCipher 7 years ago
Mikunj f4b60c3ff6 Fix setting friend requests incorrectly. 7 years ago
Mikunj 6aab900da2 Handle friend request updated. 7 years ago
Mikunj 757216fe80 Fix text input disabling. 7 years ago
Mikunj fc3cb9c46d Replace old pending messages with new one when adding a new incoming friend request.
More refactoring.
7 years ago
Mikunj d5fafd4d78 refactor friend request message props 7 years ago
Mikunj a80d6bb868 Merged branch correctly. 7 years ago
BeaudanBrown 9ceb3c8ac0
Merge branch 'development' into message-polling 7 years ago
Scott Nonnenberg 2822f4ce40 Ensure proper order of state changes during account create 7 years ago
Scott Nonnenberg c5f9fae444 A few small bugfixes 7 years ago
Beaudan c59b196487 Now reading messages and adding them to conversations. Some cleaning of unreachable code. Modified the message data to be encoded as base64 string before sending to server
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
7 years ago
Mikunj 0cf616328e Fixed saving prekey bundle once friend request is accepted.
Added option to delete conversation after it is declined.
7 years ago
Mikunj 0a88f337d5 Merge branch 'sig-development' into merge/signal 7 years ago
Mikunj c150cbe34f Friend request message indicator. 7 years ago
Mikunj b9e85bb141 Added handling of accept and decline events. 7 years ago
Mikunj 1bef7a0c98 Modified createAccount to only accept params needed for Loki Messenger.
Removed implementation of registerSecondDevice.
7 years ago
Mikunj b63844af57 Fix registration. 7 years ago
Scott Nonnenberg e828253ef0 Restor full function syntax to custom Mocha reporter 7 years ago
Scott Nonnenberg dbf0be2db5 eslintify all test files 7 years ago
Scott Nonnenberg 2d48daa7b6 Refine Sealed Sender behaviors 7 years ago
Mikunj 2fabd93fd6 Fix message sending 7 years ago
Mikunj 77602e3dbb Moved contactPreKey and contactSignedPreKey to sql. 7 years ago
Mikunj f589fdac5c Merge signal changes into branch. 7 years ago
Beaudan 1ccf3b6b95 Added function to loki_message_api to do a single request call to storage server. Currently just gets called once when the application starts 7 years ago
Scott Nonnenberg e2e0e4c96b Refine sealed sender logic 7 years ago
sachaaaaa dda71cbea1 always lock editor after sending friend request. unlock if error. 7 years ago
Scott Nonnenberg 1755e0adfd Move all remaining stores to SQLCipher 7 years ago
sachaaaaa 4b9fcb98d4 Linting and other housekeeping stuff 7 years ago
sachaaaaa 7b1fbe362e Allow choosing language for mnemonic seed 7 years ago
sachaaaaa bbabeb34b8
Merge pull request #18 from sachaaaaa/mnemonic
Allow registering using a mnemonic word list
7 years ago
sachaaaaa 68c98e0f6f
Merge pull request #20 from sachaaaaa/friend_request_prompt
Friend request prompt
7 years ago
sachaaaaa 666cb1d3cb replace double with triple equals 7 years ago
Scott Nonnenberg a7d78c0e9b Sealed Sender support
https://signal.org/blog/sealed-sender/
7 years ago
sachaaaaa 13858dfa66 yarn.lock and fix missing variable in transmission error handling 7 years ago
sachaaaaa 3481c0e58f send back an empty message with prekeys upon accepting a friend request 7 years ago
sachaaaaa e1ffe582c3 Prompt user when an incoming friend request is received 7 years ago
sachaaaaa 143b1e883d
Merge pull request #17 from sachaaaaa/lock_input_friend_request
Lock input after friend request is sent
7 years ago
sachaaaaa 68e15d60b1 Convert privKey to ArrayBuffer before generating key pair 7 years ago
sachaaaaa 1ce29d77c3 Moved mnemonic to node side. Added sc_reduce32 (asm) to generate privkey. Moved mnemonic languages to separate files. 7 years ago
sachaaaaa 1cf8710127
Merge pull request #16 from sachaaaaa/friend_response
Handle prekeys in incoming friend request
7 years ago
sachaaaaa a418a9d23b allow registering using a mnemonic word list (seed used as privKey for now) 7 years ago
Beaudan d9c89376cb Added logic to pass tll into transmitMessage function, with default value of 24 hours.
TODO: ensure that the target calculation for the PoW is adjusting appropriately for the different ttl values.
7 years ago
Beaudan 9d8890594c Removed unused retransmit function 7 years ago
sachaaaaa fb020f88ea call 'onFriendRequestSent' only after the message was successfully sent 7 years ago
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
7 years ago
sachaaaaa 93f1534512 Save prekeys upon reception of friend request. Add function to send an empty message as friend request acceptance 7 years ago
sachaaaaa b9dbf11ebc Fix various things from previous commits 7 years ago
sachaaaaa 5602f4bfff Change placeholder in discussion 7 years ago
sachaaaaa d4d0d05adf Lock text input while waiting for friend request reply 7 years ago
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
7 years ago
Scott Nonnenberg 76e72f871a Better handle large numbers of messages in cache on startup 7 years ago
sachaaaaa 0283c6428f Ignore friend request messages that could not be decrypted 7 years ago
sachaaaaa 9677f8b648
Merge branch 'development' into send_as_bytes 7 years ago
sachaaaaa be29ea725a revert libsignal-protocol and convert binary-encoded string to Uint8Array later down the line 7 years ago
sachaaaaa 6fe70b9b85 Send outgoing messages as raw bytes (Uint8Array) and moved recipient & ttl to header 7 years ago
sachaaaaa 9da4e94276 print outgoing messages as bytes, that can be injected in the mock socket server for debugging 7 years ago
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 7 years ago
sachaaaaa 5e9f4177ff style nits 7 years ago
sachaaaaa d6954aa91c Wrap outgoing message in a WebSocketMessage proto object to match incoming format 7 years ago
sachaaaaa 38e6272dc6 Use async/await in addMockContact instead of nested promises 7 years ago
sachaaaaa 42e941531f Add fallback encryption (FallBackSessionCipher. simple DH) for when key bundle hasn't been received yet. Skip padding of bytes. 7 years ago
sachaaaaa ac92d53e14 display mock contact priv key for debugging 7 years ago
sachaaaaa e81e253ccf temporarily disable decryption and unpadding of incoming messages 7 years ago
sachaaaaa 6b998d79a7 Fix message_receiver not able to convert ArrayBuffer to stringBase64 in addToCache 7 years ago
Scott Nonnenberg 2cfbfe477a Better handle large numbers of messages in cache on startup 7 years ago
sachaaaaa 2631d195fd allow generating a mock contact via console without saving its key bundle 7 years ago
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
7 years ago
Scott Nonnenberg 814b9cf26a Only accept 'you left group' messages when group blocked 7 years ago
Scott Nonnenberg c2e0ec5636 Group Blocking: Allow group metadata messages from own devices 7 years ago
Scott Nonnenberg 9c399624cc Support for blocking groups on mobile, via group/blocked syncs 7 years ago
sachaaaaa b7ca5562b2 remove debugging code that skips encryption 7 years ago
sachaaaaa fbf13e1873 make transmitMessage call loki_message_api.sendMessage instead of webapi::sendMessage 7 years ago
sachaaaaa bb65115d7d Ensure the unique object id is stored in the object to facilitate deleting it later. 7 years ago
sachaaaaa 2f562ce9e1 Change contact prekeys in db to allow multiple entries for each contact 7 years ago
sachaaaaa 0832806bd9 wip: added helper to create mock contacts, almost got a session working 7 years ago
sachaaaaa b84ff76faf Fix error handling when sending message + clean up in loki_message_api 7 years ago
sachaaaaa 8ada6ce8ad serialize message as base64 7 years ago
sachaaaaa 1e14022e2f Add skeleton for Loki Message API. Wrap data in json (for now?) 7 years ago
sachaaaaa 8f33419b52 Change pubkey representation to hex instead of base64 7 years ago
sachaaaaa 536908b1c4 Temporarily prevent re-connecting when socket is disconnected 7 years ago
sachaaaaa 4f3b036fee Skip decrypting messages coming from websocket (no client-server encryption) 7 years ago
Scott Nonnenberg 02fbea96c0 Move base64 conversions off of the main thread 7 years ago
Scott Nonnenberg 911bc63c67 Move all arrayBuffer<->base64 functions to be async 7 years ago
sachaaaaa 516f0a9916 Replace phone number with pubkey as identity. Remove unused keys and skip sending keys to server. (#2) 7 years ago
Scott Nonnenberg 15751f3521 MessageReceiver.queueAllCached: Give event loop a rest
We don't want to queue multiple hundreds of messages at once, so we
let the event loop catch up every 20 messages queued.
7 years ago
Scott Nonnenberg 0eb2c958a5 Handle contact: don't exit early if timer is 'invalid' 7 years ago
Scott Nonnenberg 7983300f4a Use base64 strings for incoming message cache instead of binary 7 years ago
Scott Nonnenberg 85ab4e567f Let server know that we failed to process message on cache error 7 years ago
Scott Nonnenberg 727925a266 Clean up old messages, better handle errors from sending 7 years ago
Scott Nonnenberg 52ee6abf52 Provide needed function to migration process
And disable attachment cleanup for now
7 years ago
Scott Nonnenberg 44dec45995 Ensure that all messages in cache are migrated properly 7 years ago
Scott Nonnenberg 59f955ff30 On error handling cached message, show error then delete 7 years ago
Scott Nonnenberg baf419b7b6 Ensure that we always enqueue in the same order received 7 years ago
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
7 years ago
Scott Nonnenberg 0774ba2903 Eslintify all of libtextsecure 7 years ago
Scott Nonnenberg 5933a34a18 Use window.log in browser context, turn on console eslint rule 7 years ago
Scott Nonnenberg f5852bb357 Be resilient to null thrown errors so we can surface to user 7 years ago
Scott Nonnenberg a40a39314a Disable notifications on new 'reconnect' event for laptop resume 7 years ago
Scott Nonnenberg 1c23c6a9d7 Remove window.config in favor of window.getXXX() accessors 7 years ago
Scott Nonnenberg f3bd0cf903 Refactor api.js into web_api, which encapsulates all web access 7 years ago
Scott Nonnenberg 37ebe9fcec eslintify libtextsecure/api.js 7 years ago
Scott Nonnenberg cfe0bd0e79 Move to npm for several dependencies
mustache
jQuery
underscore
backbone
mocha
chai
intl-tel-input
7 years ago
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
7 years ago