Commit Graph

47 Commits (e41d1829725ab875992c63f486087619498bbeee)

Author SHA1 Message Date
Audric Ackermann 710c9fa269
fix http request over onion
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100
Audric Ackermann b68338e26c
working get and post request with opengroup api v2
Audric Ackermann 8ea9f02cec Move data.js to data.ts
Audric Ackermann 375c5ba1a8 add the request and reply of an encryptionKeyPair if needed
Audric Ackermann 135fc3b366
remove prekeys
Audric Ackermann 72c96ea998
remove most of the SessionProtocol unused stuff
- prekeys
- SessionCipher
- LokiCipher
- endSession and the reset Session logic
- what we called Sessionprotocol manager (to keep track of session with
everyone)
Audric Ackermann 2fe6b11e89
move ConversationController to typescript
Mikunj 646973e330 Made changes to how messages are sent.
Instead of blocking the message queue when we don't have a session, we instead just send out a session request and send the queued messages using fallback encryption.
This means that users will be able to message right away without having to wait.
The only down side is that all messages sent before sessions are established will be using the weaker encryption.

This change also means we have to detach session requests from envelope type (which is a good thing) and thus now a message is a session request if it contains a preKeyBundle.
Mikunj 8f82e7a442 Fix multi device pairing
Audric Ackermann f500fed69c
rename missing envelope type FR to SESSION_REQUEST
Mikunj 36762dbbf2 Added libsignal-protocol typings.
Added MessageEncrypter.
Audric Ackermann fa853538d0
LINT after prettier upgrade
Maxim Shishmarev 61d4c7c349 Encrypt source for medium groups
Mikunj 96d42e24d2 Made calculateAgreement async
Mikunj d8ed1258e1 Made key generation async
Mikunj 496afa85cb Remove libsodium-wrapper.
Remove LokiSnodeChannel as we weren't using it.
Maxim Shishmarev 0221e7b8c0 fix linter warnings
Maxim Shishmarev 9e3f16301f Add AES-GCM
Mikunj 1be4123133 Rename variable to be less confusing
Mikunj 942c76ce6b Linting
Mikunj 820ce5cdf0 Made session reset synchronous.
Clean up some code.
Mikunj Varsani 8ffb1a0a10 Refactor session reset handling
Ryan Tharp dfb5b0ed9f throw instead of log
Ryan Tharp 0ac79b2275 convert logging to throws
Ryan Tharp 23fe8407ea fix typo
Ryan Tharp dbff390035 improve guards on loading keypair
Maxim Shishmarev b7e93ab597 Support sealed sender for friend requests
Ryan Tharp 66eae90c38 refactor verifyAuthorisation out of validateAuthorisation
Mikunj f87c9d2222 Fix up numbers in pairing type.
Mikunj 589b3f3233 Infer pairing message type from the content.
This should fix device pairing cross platform.
Beaudan Brown d97eced37b Merge branch 'clearnet' into multi-device
Beaudan Brown 5710c1268c Revert id field and add new url field to be compatible with mobile
sachaaaaa 1f3311bc5d Save device mappings upon accepting friend request + various fixes
sachaaaaa 4929f8d8db Move high-level authorisation from message_receivier to libloki.crypto
sachaaaaa d3653e8665 lint after manual merge
sachaaaaa 0426d85e7a Merge branch 'clearnet' into multi-device
* clearnet: (136 commits)
  Fix more check on deletion.
  Only shorten pubkeys if name is present
  Shorten pubkeys in quotations too
  better guard
  pass serverId back to the server
  Bump version.
  Purge cache on failure.
  Fix unnecessary link preview fetches.
  Review changes. Increase mod time to 30 seconds.
  Undo defaultPublicChatServer change,
  Modified colour of dark mod badge
  Linting.
  Updated design
  Show crown icon for moderators
  Fix last hash all being NULL in database
  Poll for moderators, store them on the conversation and use the list to determine our own mod status
  Make sure we are always updating the last deleted id
  Update ts/components/conversation/FriendRequest.md
  Fix  Display timestamp for friend requests
  Fix duplicate detection for sent messages in public chat
  ...

# Conflicts:
#	app/sql.js
#	js/background.js
#	js/models/messages.js
#	js/views/app_view.js
#	libloki/crypto.js
#	libtextsecure/message_receiver.js
Beaudan Brown 700ed5d2a8 Some refactoring from reviews, and include the token in the message pipeline instead of getting in message_api
Beaudan Brown fc8aa0211d Addressing reviews
Beaudan Brown eec4f22b50 Add crypto helpers and public error
sachaaaaa a4411007b0 Pairing authorisations: refactor proto, change sql table, add getters
sachaaaaa d208614909 Multi-device part 1: make primary account generate and send authorisation to secondary
sachaaaaa 9d6c5bff36 make unverified https queries to the snodes
sachaaaaa aa722590fa use channel encryption with storage server
sachaaaaa e2abc0d510 Add channel encryption library with tests (not in used so far)
Mikunj 6bd2d3962e Linted files
Mikunj 982f10a505 Split libloki logic.
Added to gruntfile.