Commit Graph

456 Commits (6ecc275aa27c6ec226af46f6c9a26b29ed020521)

Author SHA1 Message Date
Beaudan Brown 8ccf62ed4e Trigger endSession code if we receive a friend request from a friend 6 years ago
Mikunj 589b3f3233 Infer pairing message type from the content.
This should fix device pairing cross platform.
6 years ago
Beaudan Brown 883feb668d The rest of my multidevice work, send messages to all the correct devices and automatic friend request if not friends with a device 6 years ago
Beaudan Campbell-Brown aa66b28ffe
Merge pull request #579 from BeaudanBrown/friends-with-any
Add isFriendsWithAnyDevice and use it in relevant places
6 years ago
Beaudan Brown 76b36845bb Add isFriendsWithAnyDevice and use it in relevant places 6 years ago
Beaudan Brown 08ad913105 Add explicit isSecondary flag to conversation list items so they can remain hidden in the menu after they become friends etc 6 years ago
Beaudan Brown d97eced37b Merge branch 'clearnet' into multi-device 6 years ago
Beaudan Brown f0c198c7b7 Split uploadData to public and private 6 years ago
Beaudan Brown 5710c1268c Revert id field and add new url field to be compatible with mobile 6 years ago
Beaudan Brown 4e85435bf7 Update attachment pipeline to upload and download from loki fileserver 6 years ago
sachaaaaa 73d90a5277
Merge pull request #537 from sachaaaaa/secondary_device_minimum_receiver
[multi-device] Start all the receivers only after the secondary registration is fini…
6 years ago
sachaaaaa c38e145be7 lint 6 years ago
sachaaaaa f268fbb552
Merge pull request #534 from sachaaaaa/use_file_server_device_mapping
[multi-device] Use file server device mapping
6 years ago
sachaaaaa cc04bee38a Start all the receivers only after the secondary registration is finished 6 years ago
sachaaaaa 91a79ea57c Fetch device mapping from server when after receiving friend request 6 years ago
sachaaaaa 4929f8d8db Move high-level authorisation from message_receivier to libloki.crypto 6 years ago
sachaaaaa 77bfee8892 No need to handle authorisations sent in friend requests 6 years ago
sachaaaaa d3653e8665 lint after manual merge 6 years ago
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 #355 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
6 years ago
sachaaaaa d17f86679f
Merge pull request #495 from sachaaaaa/fix_unknown_signedkey
[multi-device] Ensure the latest contact signed prekey is used
6 years ago
sachaaaaa 712afef8e2 simplify 6 years ago
sachaaaaa 6de6b762e6 Ensure the latest contact signed prekey is used 6 years ago
sachaaaaa cf0628a001 Secondary device to send friend request automatically to all sync contact received 6 years ago
sachaaaaa b10835ffc7 Share contact upon authorising secondary device 6 years ago
Beaudan Brown 9beea2cbd3 Enforce curlies completely and lint with new settings 6 years ago
Mikunj 831ae09576 Cherry pick "profile simplification" from Mik 6 years ago
sachaaaaa 9f8ee875b7 address review 6 years ago
sachaaaaa 97970ff465 Share primary device profile name upon secondary registration 6 years ago
Mikunj c4dd10a5cd Simplified profile setting. Renamed functions to be less confusing. Removed storing profile in local storage. 6 years ago
sachaaaaa 661b207245 Various fixes for bugs introduced during reviews 6 years ago
sachaaaaa 8ef54890b2
Update libtextsecure/message_receiver.js
Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
6 years ago
sachaaaaa c7dc79e7f9 Fix missing awaits! 6 years ago
sachaaaaa 6ab05e28df Handle incoming pairing authorisation message 6 years ago
Beaudan Brown 895cedc801 Lint 6 years ago
Beaudan Brown 3f4b94ba74 Transition to initialising rss feeds in schema update 6 years ago
Ryan Tharp 48f2637ff9 lint 6 years ago
Ryan Tharp 0a1655b03d poll all feeds 6 years ago
Ryan Tharp c57571fdfd loki.network rss feed 6 years ago
sachaaaaa d208614909 Multi-device part 1: make primary account generate and send authorisation to secondary 6 years ago
Beaudan 014558d939 Squash and clean of old PRs, move towards sending cleartext again 6 years ago
Beaudan 7dd155eb16 Remove empty event trigger, doesn't seem to be required any more but could be wrong 6 years ago
Beaudan 63396669bc Add eslint rule to enforce curlys, run eslint --fix to automatically apply this rule and add swapfiles to gitignore 6 years ago
Beaudan Campbell-Brown c1efa93137
Merge pull request #349 from BeaudanBrown/fix-disappearing
Fix disappearing messages and deleting contact
6 years ago
Beaudan 96aaa7851d Send broadcast message instead of empty message to trigger things like session reset and disappearing messages. Also fix small bug where deleting a contact kept the (now removed) conversation open 6 years ago
Beaudan 6ef94fa43d Start attempt at closing long polling connections when offline event is triggered 6 years ago
Beaudan df2c4af67c Run lint and check for ip or address when removing unreachable nodes 6 years ago
sachaaaaa beac7a02bb send "unreachable" ping to allow half-p2p 6 years ago
sachaaaaa c53633e367 Clearnet p2p with https (no verification yet) 6 years ago
Mikunj 57195017f9 Linting 6 years ago
Mikunj e343a04eea Merge commit '18b5b7c046436f2defab2e20407e22da180bf97b' into signal-1.22
# Conflicts:
#	app/sql.js
#	background.html
#	config/default.json
#	js/background.js
#	js/models/conversations.js
#	js/models/messages.js
#	js/modules/data.js
#	js/signal_protocol_store.js
#	js/views/conversation_search_view.js
#	libtextsecure/message_receiver.js
#	libtextsecure/sendmessage.js
#	main.js
#	package.json
#	preload.js
#	test/index.html
#	ts/components/Avatar.tsx
#	ts/components/conversation/ConversationHeader.md
#	ts/components/conversation/ConversationHeader.tsx
6 years ago
Beaudan 620380d2d9 Move filter messages to message api and some other cleaning 6 years ago
Beaudan e5449f56ee Added success and failure callbacks when queueing envelope, now responding with 404 if we fail to decrypt a p2p message 6 years ago
Beaudan 5a23dbb687 Review comments and add local server listener before starting 6 years ago
Beaudan 8c20a31dd4 Review suggestions 6 years ago
Beaudan eaea7d9b7d Catch errors when starting local server and retry every 30 seconds 6 years ago
Mikunj 06be1da40d Added p2p message styling 6 years ago
Beaudan 403df0806b Update the production json to just use the defaults in preparation for having other people try the messenger. Also cleaned up a little log that was incorrect 6 years ago
Scott Nonnenberg 3fb6ab295f Debug log optimizations and improvements 6 years ago
Scott Nonnenberg 77ae717b9b Clean up shutdown handling - stop processing incoming messages 6 years ago
Scott Nonnenberg 7c4ba5446c Throw error if incoming attachment has mismatched attachment size 6 years ago
Beaudan dc67aaf9cc Roll back change to ping more often again, ping our offline contacts every 2 mins to check if they have come back online 6 years ago
Beaudan 29bca71d5a Try ping contacts that send us storage server messages in the last 2 mins 6 years ago
Beaudan d6a210efaa Reworked the update p2p details to be more robust and stopped some redundant pings from happening 6 years ago
Beaudan 2fd746821a Added function for getting your loki IP and bind the local server 6 years ago
Scott Nonnenberg 2c3847affe MessageReceiver: Don't wait for cache update to move forward 6 years ago
Scott Nonnenberg 5b54c9554e Remove groups table, conversation is single source of truth 6 years ago
Scott Nonnenberg b69eea543c MessageReceiver: Don't wait for app logic to start next decrypt 6 years ago
Scott Nonnenberg 041fe4be05 Remove JSON column and Backbone Model for unprocessed 6 years ago
Scott Nonnenberg 1d2c3ae23c Download attachments in separate queue from message processing 6 years ago
Scott Nonnenberg 021e807180 MessageReceiver: Log errors with proper message id 6 years ago
sachaaaaa fdc51e88dd only verify the prekey id when there is no current session active 6 years ago
sachaaaaa 2755ff06d8 remove messages from cache before throwing if the prekey id could not be verified 6 years ago
sachaaaaa 7186f28019 Ensure a session is always initiated using the prekey assigned to the contact 6 years ago
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 (#3083)
  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
6 years ago
Beaudan cd79d5aca5 Fixed and simplified some logic for the handling of loki address messages 6 years ago
Beaudan a40a3d164f Lots of logic for establishing a p2p connection, managing when the other user is online vs offline etc. Will always try to use P2P messaging when it can and fall back to storage server otherwise 6 years ago
Mikunj efe95a70bc Fix review issues. 6 years ago
Mikunj 3c07d99a89 Fix variable names.
Fix module export to be more consistent.
6 years ago
Beaudan 2bae6b5eed Removed online broadcast message type, changed ttl logic a little, add p2p address and port to the window object when recieve message 6 years ago
Beaudan 07076c27ae Moved friend status to window, added start of p2p api stuff 6 years ago
Beaudan b417edfc9b Added new protos for online broadcast messages, added db hits for getting friends, local server now instantiated on the window, now sending online broadcast messages when the local server starts 6 years ago
Scott Nonnenberg 813924685e Link Previews 6 years ago
Scott Nonnenberg 91ef39e482 Ensure that blocked messages are dropped even after sealed sender 6 years ago
Beaudan Campbell-Brown dcfc97713b
Merge pull request #150 from sachaaaaa/display_nickname_on_friend_accept
Send profile along with friend request accept message
6 years ago
sachaaaaa fe63a9af8c always remove message from cache and return early when message.body is null 6 years ago
sachaaaaa c853239a00 Merge pull request #152 from sachaaaaa/fix_friendrequest_notification_when_sessionreset
Suppress friend request notification for session reset
6 years ago
Mikunj Varsani b226feaac7
Merge pull request #148 from Mikunj/signal-1.20
Signal 1.20
6 years ago
sachaaaaa adfb4ab371 work with session reset 6 years ago
sachaaaaa b080828065 Fix bug where a friend request notification is shown when a session reset is received 6 years ago
sachaaaaa 1238cbc4e6 Send profile along with friend request accept message 6 years ago
Mikunj 1a15ec9c15 Merge commit signal/master into signal-1.20 6 years ago
Mikunj 9b71e8119e Added error catching. 6 years ago
Mikunj f21d1f65e6 Let OS select random open port. 6 years ago
Mikunj 8c9b1a7a7a Added loki server.
Added test.
6 years ago
Mikunj e08a63d078 Merge development into lint 6 years ago
Beaudan 7b1799c418 Big ol' hunk o' chunk. Now using random.snode to populate swarm lists, now making multiple requests from said lists and they are processed as they complete rather than waiting for all to resolve 6 years ago
Mikunj 6bd2d3962e Linted files 6 years ago
Scott Nonnenberg aab2a57b48 Some style and interaction fine-tuning 6 years ago
Scott Nonnenberg 43e5d16020 Support for web socket communication with no signaling key 6 years ago
Mikunj 070d18b514 Updated function calls. 6 years ago
Mikunj 654b0dac84 Merge signal-master. 6 years ago
Beaudan 6113f13d3a Rip the worker logic out of message_receiver and add the functionality for it to work with pow. Fix pow tests to work with those changes 6 years ago
sachaaaaa 05c18d42db
Merge pull request #66 from sachaaaaa/session_reset
Handle session reset, Loki style
6 years ago
Beaudan 1e3886cca8 More consistent naming of key storage functions, moved some loki messenger only functions into new file 6 years ago
sachaaaaa 91f018da57 remove unused var 6 years ago
sachaaaaa f2e1b9b8de more missing awaits 6 years ago
sachaaaaa 933d7730db Remove superfluous commented out line 6 years ago
sachaaaaa 7e612700f7 Handle session reset, Loki style 6 years ago
Beaudan 2de01d0343 Back to multiple pending states, fix some notification bugs and friend requests should now work for all cases besides message sending interruption 6 years ago
Scott Nonnenberg 822ea9ae53 Improve sealed sender icon display logic 6 years ago
sachaaaaa f900fc496d
Merge pull request #61 from Mikunj/feature/profile-nickname
Added profile sharing and setting nicknames.
6 years ago
Mikunj 18d638fdbf Fix sending and receiving profile.
Don't delete profile after if we set the display name to empty.
6 years ago
Beaudan fa63ce5ade Review changes 6 years ago
Beaudan 35c89ea4d9 Big refactor, prekeybundle moved back to a content message 6 years ago
Mikunj 14ee7fec65 Moved and nicknames into conversations. 6 years ago
Mikunj aa57693fce Update profile if we get it through a message. 6 years ago
Beaudan 7c92eeac30 Fixing cache clearing bug 7 years ago
Scott Nonnenberg 79a861a870 Typing Indicators 7 years ago
Scott Nonnenberg 99252702e1 Support receiving multiple images in one messages 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
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 f29a515fdf Fix up typos. 7 years ago
Mikunj 8a0b8e1f00 Store the state of the friend request inside the conversation. 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 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
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 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 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