Commit Graph

149 Commits (66697bc235625e8c7f514c21fe8746f957746d27)

Author SHA1 Message Date
Audric Ackermann 3fd260b793
enforce type of profileKey and signature on linking messages
Audric Ackermann 6a13839d9d
address reviews
Audric Ackermann 6380f7426f
fix pairing devices bugs since move to new pipeline
Audric Ackermann c947d99369
getMessageQueue() rather than .messageQueue to avoid startup issue
Audric Ackermann 2e78f755b4
replace sending of established, grant and link request messages
Audric Ackermann 4865b72e93
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic
Audric Ackermann 66de8d9648
remove plenty of the friend logic
Mikunj ae44f0da0f Remove old multi device functions
Mikunj 7b7d8c0e2a Remove multi device from libloki
Mikunj 7a6ea97efb Handle strings in MultiDeviceProtocol
Mikunj c8414fdce6 Simplify sql and data files
Audric Ackermann e399b9b65b
lint
Audric Ackermann 8d99d22ec6
link: send contacts after closed groups to minimize visible afr
Mikunj Varsani 24a3e05154
Revert "Revert "Clean up unused dependencies.""
Vince 5ff7476359
Revert "Clean up unused dependencies."
Mikunj 9d2417c2f6 Removed proxy-agent and web-socket.
Trimmed down web_api.js to most basic functions we are using. This needs to be completely removed in the future.
Mikunj 000f95a430 Rollback any changes to file server if pairing authorisation failed to send
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.
Audric Ackermann 6d03a63d4a
add sync of open groups on device link
Mikunj 0eaebcbcac Don't send contact sync message with pairing authorisation.
Don't send secondary devices in contact sync messages.
Mikunj f35493ce9f Linting
Mikunj abf298ba25 Added sending of group sync message
Maxim Shishmarev 3f58dea035 Remove mixpanel
sachaaaaa 3d7548729f Prevent prekeys to be deleted when re-sending pairing request
Beaudan Brown bce18b7ae6 Revert change so we are always friends with our secondary devices, check validSyncSender from primary pubkey rather than ourNumber
Beaudan Brown f16b032056 Handle sync messages properly for some edge cases, ensure we always have a primaryDevicePubKey, send contact sync message
Mikunj 589b3f3233 Infer pairing message type from the content.
This should fix device pairing cross platform.
sachaaaaa a314721cce Both devices to update their mapping after secondary registration
sachaaaaa b63d8ec84f Merge branch 'clearnet' into multi-device
* clearnet: (35 commits)
  yarn lint
  return early if signature is not a string
  lint pass 2
  lint pass 1
  make sure versioning on write can't get out of sync
  Update js/modules/loki_public_chat_api.js
  Handle annotations omit correctly
  fix typo CI found
  refactor
  pollOnceForMessages() move lastGot up, address Sacha's review
  Update js/modules/loki_public_chat_api.js
  address review
  address reviews
  Custom message rendering of mentions
  fix method
  separate out new/open, more lint/cleanup
  separate out note to self
  create window.mixpanel here
  use window.mixpanel, remove eventEmitter
  lint and remove unneeded params
  ...
Ryan Tharp c921d3e3b3 allow mixpanel to be already set up elsewhere
Ryan Tharp 88b44390bf Desktop Analytics
Beaudan Campbell-Brown a6abcaf826
Merge pull request from Mikunj/profile-simplification
Profile simplification
Mikunj 831ae09576 Cherry pick "profile simplification" from Mik
Mikunj c4dd10a5cd Simplified profile setting. Renamed functions to be less confusing. Removed storing profile in local storage.
sachaaaaa 794e6416c8 Add requestPairing high-level function
sachaaaaa 713e9a3acf Fix pubkey validation
sachaaaaa edd800d382 Make linter happy
sachaaaaa bf8bb23683 remove stale comment and simplify conversation creation
sachaaaaa d208614909 Multi-device part 1: make primary account generate and send authorisation to secondary
sachaaaaa 0e61ab8ccc Better document magic numbers
sachaaaaa 16e51a2c7a use variable for magic number
sachaaaaa b15799e7cb Generate 13 word seeds by default - still accept 25 word seeds.
Maxim Shishmarev cdd374a4b2 Add a toggle option for typing indicators; use short ttl for them
Mikunj 12ce0140de Left pane changes.
Merge commit 'b3ac1373fa64117fe2a9ccfddf3712f1826c06d9' into signal-1.23

# Conflicts:
#	_locales/en/messages.json
#	background.html
#	js/background.js
#	js/conversation_controller.js
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_list_item_view.js
#	js/views/conversation_list_view.js
#	js/views/conversation_search_view.js
#	js/views/inbox_view.js
#	libtextsecure/account_manager.js
#	package.json
#	stylesheets/_global.scss
#	stylesheets/_index.scss
#	stylesheets/_modules.scss
#	test/_test.js
#	test/index.html
#	test/models/conversations_test.js
#	test/views/conversation_search_view_test.js
#	ts/components/ConversationListItem.tsx
#	ts/components/MainHeader.tsx
#	ts/components/conversation/ConversationHeader.tsx
#	ts/components/conversation/ResetSessionNotification.tsx
Scott Nonnenberg b3ac1373fa Move left pane entirely to React
sachaaaaa a0f67c22da Merge branch 'textsecure/master' into merge_1_21_0
* textsecure/master: (26 commits)
  v1.21.0
  v1.21.0-beta.4
  Dark Theme: Preserve blue background on app loading screen
  Localization updates
  Fix width of audio player when window is very narrow
  A number of small fixes for Link Previews
  Get rid of the white flash when the app starts up ()
  v1.21.0-beta.3
  Lint fixes
  Introduce new language: NB
  Fail over to all numbers in retry if errors don't have numbers
  Use the proper method for pulling attachments off disk for retry
  Fix rendering bug with verified state in updateVerified()
  Update electron-builder and electron-updater
  Ensure that dialog pops up when permissions denied for voice note
  Lint fixes
  Large update to localization strings
  Link Previews
  Ensure that blocked messages are dropped even after sealed sender
  Don't linkify quoted message contents
  ...

# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	_locales/cs/messages.json
#	background.html
#	config/default.json
#	index.html
#	js/models/conversations.js
#	js/modules/web_api.js
#	js/settings_start.js
#	js/views/conversation_view.js
#	js/views/settings_view.js
#	package.json
#	protos/SignalService.proto
#	stylesheets/_index.scss
#	stylesheets/_settings.scss
Bradley Sinclair f968a5db3d Ensure encrypting device name does not die on empty device name ()
Ran into this on the Contributors guidelines setting up the development env.
registerSingleDevice does not pass a deviceName, so it fail every time.
Mikunj 1a15ec9c15 Merge commit signal/master into signal-1.20
Mikunj 6bd2d3962e Linted files
Scott Nonnenberg 43e5d16020 Support for web socket communication with no signaling key