Commit graph

876 commits

Author SHA1 Message Date
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 2019-07-18 13:28:36 +10:00
Beaudan
804fc076cc Refresh swarm list 1 time for outgoing messages 2019-07-04 12:19:07 +10:00
Beaudan
df2c4af67c Run lint and check for ip or address when removing unreachable nodes 2019-07-04 10:20:16 +10:00
sachaaaaa
beac7a02bb send "unreachable" ping to allow half-p2p 2019-06-28 12:09:46 +10:00
sachaaaaa
c53633e367 Clearnet p2p with https (no verification yet) 2019-06-28 12:09:46 +10:00
Beaudan
d82b5e1998 Remove random snodes if they fail and then try again. Throw seed node error if getRandomSnodeAddress fails. Filter out 0.0.0.0 nodes. 2019-06-18 17:31:49 +10:00
Beaudan
e520bf109a Persist PoW difficulty and update if get response from snodes 2019-06-03 13:37:34 +10:00
Beaudan Campbell-Brown
e9b1359bab
Merge pull request #295 from BeaudanBrown/refactor-sendmessage
Refactor sendmessage
2019-06-03 13:37:00 +10:00
Beaudan Campbell-Brown
fd6f6c6a8c
Merge pull request #290 from Mikunj/loki-profile
Convert profile field in DataMessage to use LokiProfile
2019-06-03 13:09:33 +10:00
Beaudan
c02d5d4053 Lint 2019-06-03 10:42:18 +10:00
Beaudan
709db4bf54 Make sendMessage take options, remove redundant retrieve function and get constant 2019-06-03 10:26:42 +10:00
Beaudan
b43978ece1 Initial refactoring of sendmessage 2019-05-31 13:58:01 +10:00
Beaudan Campbell-Brown
fbcd49ac5d
Merge pull request #270 from sachaaaaa/concurrent_polling
Refactor long polling for better concurrent requests
2019-05-31 11:06:24 +10:00
Mikunj
2c12c8a1d8 Convert profile field in data message to use LokiProfile instead of signal Contact. 2019-05-29 09:26:16 +10:00
sachaaaaa
5f77f751d9 Replace generator function and other various fixes 2019-05-22 15:14:58 +10:00
sachaaaaa
09a9cfbf37 Refactor long polling for better concurrent requests 2019-05-22 15:14:58 +10:00
Beaudan
91e218766c Remove old log 2019-05-22 15:06:17 +10:00
Beaudan Campbell-Brown
e99cec9c09
Merge pull request #272 from Mikunj/signal-1.24
Signal 1.24
2019-05-22 14:56:37 +10:00
beaudan
145b9e0a37 Fix typo 2019-05-13 10:25:33 +10:00
beaudan
6f21e7244f Print polling error 2019-05-13 06:49:41 +10:00
beaudan
54bd75e9a6 Wait for a longer time after failed poll and extend default timeout 2019-05-13 06:17:13 +10:00
Mikunj
8808100796 Merge signal-1.24.0
# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	background.html
#	config/default.json
#	config/production.json
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_view.js
#	js/views/inbox_view.js
#	js/views/settings_view.js
#	main.js
#	package.json
#	test/index.html
#	ts/components/conversation/ContactName.tsx
#	yarn.lock
2019-04-18 12:45:19 +10:00
Mikunj
3a8111020e Merge v1.23.0
# Conflicts:
#	background.html
#	package.json
#	yarn.lock
2019-04-18 11:12:02 +10:00
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
2019-04-17 16:42:09 +10:00
Mikunj
48c4ed1a29 Partial Merge commit 'bf904ddd129ceba8fa363ccf6d10ecd256c65f63' into signal-1.23
# Conflicts:
#	_locales/en/messages.json
#	app/sql.js
#	js/background.js
#	js/conversation_controller.js
#	js/models/conversations.js
#	js/views/inbox_view.js
#	main.js
2019-04-17 13:47:17 +10:00
Mikunj
57195017f9 Linting 2019-04-17 12:05:30 +10:00
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
2019-04-17 11:59:54 +10:00
Beaudan
620380d2d9 Move filter messages to message api and some other cleaning 2019-04-15 15:27:14 +10:00
Beaudan
377e90bafe Include long polling header for retrieve messages, extend retrieveMessages timeout to 40 seconds, reduce default tmeout to 5 seconds, remove dev/prod poll time difference 2019-04-11 15:31:00 +10:00
Beaudan
db8f8ba36f Multiple all ttl values by 1000 and stop dividing timestamp by 1000 so they are both milliseconds 2019-04-11 10:56:17 +10:00
Scott Nonnenberg
a450cdf528 Lint fixes for recent PRs 2019-04-08 11:30:19 -07:00
sachaaaaa
d99dc100a5 Fix arguments in MessageSenderWrapper (#2671) 2019-04-08 10:22:06 -07:00
Scott Nonnenberg
494806b314 libsignal-protocol: Be resilient to missing open session 2019-04-08 09:44:08 -07:00
Beaudan
fa7042c043 Added wrong swarm error which gets thrown if we receive a 421 error, update the swarm lists if we get one of those errors 2019-04-08 13:37:20 +10:00
Beaudan
b09f2970fc Move NotFoundError to errors.js 2019-04-08 13:37:20 +10:00
Beaudan
531ee92dcb Updated messenger to work with slightly different storage server API and changed swarm requests to go through storage server 2019-04-08 13:37:20 +10:00
Beaudan Campbell-Brown
338f4e3682
Merge pull request #255 from BeaudanBrown/better-logs
Improve sending/retrieving/swarm logs
2019-03-25 17:30:41 +11:00
Beaudan
e5449f56ee Added success and failure callbacks when queueing envelope, now responding with 404 if we fail to decrypt a p2p message 2019-03-14 10:02:38 +11:00
Scott Nonnenberg
32fa5cccde Send sync sent messages properly in 1-member group 2019-03-13 10:46:00 -07:00
Scott Nonnenberg
b83ae11cb3 Single member groups: Make all group-related sends a noop 2019-03-13 09:19:37 -07:00
Scott Nonnenberg
c76d537482 Note to Self: On just expire timer update, set TIMER_UPDATE flag 2019-03-13 09:11:39 -07:00
Beaudan
6656a89092 Cleaned up a lot of the logs, stop them from printing more than once etc 2019-03-13 12:05:47 +11:00
Scott Nonnenberg
b3ac1373fa Move left pane entirely to React 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
0b0dfbce9d Don't return error for groups with no members but yourself 2019-03-12 17:44:14 -07:00
Scott Nonnenberg
e4f18f9daa libsignal-protocol: Protect against null thrown Errors 2019-03-12 17:44:14 -07:00
Beaudan
5a23dbb687 Review comments and add local server listener before starting 2019-03-01 13:49:59 +11:00
Beaudan
8c20a31dd4 Review suggestions 2019-03-01 12:50:45 +11:00
Beaudan
eaea7d9b7d Catch errors when starting local server and retry every 30 seconds 2019-03-01 12:45:31 +11:00
Mikunj
06be1da40d Added p2p message styling 2019-02-22 10:22:03 +11:00
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 2019-02-21 14:33:03 +11:00