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
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
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
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
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
2019-02-20 16:08:41 +11:00
Beaudan
29bca71d5a
Try ping contacts that send us storage server messages in the last 2 mins
2019-02-20 16:08:41 +11:00
Beaudan
d6a210efaa
Reworked the update p2p details to be more robust and stopped some redundant pings from happening
2019-02-20 16:08:41 +11:00
Beaudan
b00a0cb699
Rename isOnline to isPing for clarity, and reduce the ttl for online broadcast messages to 1 min
2019-02-20 16:08:41 +11:00
Beaudan
2fd746821a
Added function for getting your loki IP and bind the local server
2019-02-14 13:09:04 +11:00
sachaaaaa
6febbf83da
reset line endings in libsignal-protocol
2019-02-14 11:07:37 +11:00
sachaaaaa
68fe552156
Merge commit '5c8558e293989094693f918a63b672301f1aeb55' into merge_1_21_1
...
* commit '5c8558e293989094693f918a63b672301f1aeb55':
v1.21.1
v1.21.1-beta.1
Fix: Navigation to message via quote click didn't always work
mainWindow.close - be ready for null mainWindow
Ensure that Curve.async points to worker after startWorker call
Protect against unhandled promises when calling checkForUpdates
Reenable send when link preview is missing an image
# Conflicts:
# package.json
2019-02-12 13:17:35 +11:00
sachaaaaa
1a810f4e4f
Merge pull request #186 from Mikunj/local-preview
...
Added local link previews
2019-02-11 16:21:41 +11:00
Scott Nonnenberg
2ce86af093
Ensure that Curve.async points to worker after startWorker call
2019-02-08 11:54:22 -08:00
sachaaaaa
fdc51e88dd
only verify the prekey id when there is no current session active
2019-02-08 16:36:33 +11:00
Mikunj
a1e4b740f2
Fixed up settings view.
...
Fix review issues.
2019-02-08 16:03:15 +11:00
sachaaaaa
2755ff06d8
remove messages from cache before throwing if the prekey id could not be verified
2019-02-08 14:21:44 +11:00
Mikunj
ae695fe32f
Remove sending attachments.
2019-02-08 13:36:22 +11:00
Scott Nonnenberg
b3eb0646c0
Reenable send when link preview is missing an image
2019-02-07 10:21:43 -08:00
sachaaaaa
7186f28019
Ensure a session is always initiated using the prekey assigned to the contact
2019-02-07 17:58:24 +11:00
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
2019-02-06 13:53:20 +11:00
Beaudan
0c104e5a53
Small fix for the disconnected banner coming up when it shouldn't, just default to thinking we are connected and mock the onEmpty event. Will only get set to not connected if requests fail
2019-02-05 10:48:51 +11:00
Beaudan
cd79d5aca5
Fixed and simplified some logic for the handling of loki address messages
2019-02-04 15:37:55 +11:00
Beaudan
b2e95932f1
Lint
2019-02-04 11:18:59 +11:00
Beaudan
fac8e72861
Added queue manager to properly fix the race condition bug and reset the changes I made in other commit
2019-02-04 11:14:31 +11:00
Beaudan
b2f456031f
Forgot to lint
2019-02-01 15:01:11 +11:00
Beaudan
cc3f98b20a
Move the incoming hash filtering logic into sql.js to prevent data races
2019-02-01 15:01:11 +11:00
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
2019-01-31 16:10:57 +11:00
Mikunj
efe95a70bc
Fix review issues.
2019-01-31 11:58:43 +11:00
Mikunj
3c07d99a89
Fix variable names.
...
Fix module export to be more consistent.
2019-01-31 11:30:26 +11:00
Beaudan
2bae6b5eed
Removed online broadcast message type, changed ttl logic a little, add p2p address and port to the window object when recieve message
2019-01-31 10:24:34 +11:00
Beaudan
07076c27ae
Moved friend status to window, added start of p2p api stuff
2019-01-31 10:24:34 +11:00
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
2019-01-31 10:24:34 +11:00
Mikunj Varsani
8b5106433f
Update libtextsecure/errors.js
...
Co-Authored-By: BeaudanBrown <beau@loki.network>
2019-01-30 10:59:22 +11:00
Beaudan
c83661ce3f
Added DNS resolution error for when lokinet isn't working, now keeping track of the nodes that have been queried and not trying them again
2019-01-30 10:59:22 +11:00
Beaudan
561d60cfd5
Sending messages now in a while loop like retrieving messages, added a failureCount and only delete node urls if they fail 3 times
2019-01-30 10:59:22 +11:00
Scott Nonnenberg
813924685e
Link Previews
2019-01-29 13:53:14 -08:00
Scott Nonnenberg
91ef39e482
Ensure that blocked messages are dropped even after sealed sender
2019-01-29 13:53:14 -08:00
Bradley Sinclair
f968a5db3d
Ensure encrypting device name does not die on empty device name ( #3066 )
...
Ran into this on the Contributors guidelines setting up the development env.
registerSingleDevice does not pass a deviceName, so it fail every time.
2019-01-29 09:39:55 -08:00
Beaudan Campbell-Brown
dcfc97713b
Merge pull request #150 from sachaaaaa/display_nickname_on_friend_accept
...
Send profile along with friend request accept message
2019-01-25 16:03:04 +11:00
sachaaaaa
fe63a9af8c
always remove message from cache and return early when message.body is null
2019-01-25 11:17:24 +11:00