Commit Graph

5178 Commits (69ebf017ffcc157fb6b9407d1f9673412099968b)
 

Author SHA1 Message Date
Beaudan 69ebf017ff Reworked loki_p2p_api to not use the window object, which means it needs to be instantiated after the storage is ready so that your pubkey can be passed in to the constructor. This makes it more modular and allows for easier testing 6 years ago
sachaaaaa 432c336048
Merge pull request #171 from Mikunj/online-indicator-fix
Added online indicator to conversation header.
6 years ago
Mikunj ddfc99a461 Added online indicator to conversation header. 6 years ago
sachaaaaa 1519406c65
Merge pull request #169 from Mikunj/queue-message-send-update
Minor code update
6 years ago
sachaaaaa 7c4eb826d0
Merge pull request #168 from BeaudanBrown/disconnected-fix
Fixing the disconnected buffer coming up too much
6 years ago
Mikunj e3c0f2147a Fixed variable name. 6 years ago
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 6 years ago
Mikunj 926362f88a Rename queue_manager to job_queue 6 years ago
Mikunj 1d40bc3af9 Changed queueMessageSend to use JobQueue. 6 years ago
sachaaaaa 8462864373
Merge pull request #167 from BeaudanBrown/p2p-fixes
P2p logic fixes
6 years ago
Beaudan cd79d5aca5 Fixed and simplified some logic for the handling of loki address messages 6 years ago
sachaaaaa b1cd0e2a65
Merge pull request #164 from BeaudanBrown/message-filtering
Message filtering
6 years ago
Beaudan b2e95932f1 Lint 6 years ago
Beaudan fac8e72861 Added queue manager to properly fix the race condition bug and reset the changes I made in other commit 6 years ago
Beaudan b2f456031f Forgot to lint 6 years ago
Beaudan 25383458b1 Fixed bug with our swarm nodes being removed from memory after a successful request because of returning a reference 6 years ago
Beaudan cc3f98b20a Move the incoming hash filtering logic into sql.js to prevent data races 6 years ago
Beaudan Campbell-Brown 5f49c5aafd
Merge pull request #165 from Mikunj/online-indicator
Online indicator
6 years ago
Mikunj 174f8747b6 Review fixes.
Revert promises back to old style.
6 years ago
Mikunj 594a815069 Fix test 6 years ago
Beaudan Campbell-Brown 36d52a77ba
Merge pull request #162 from sachaaaaa/simplify
call class method using "this" in loki_snode_api
6 years ago
sachaaaaa 576617e18e call class method using "this" in loki_snode_api 6 years ago
Mikunj 4518e95619 Linting 6 years ago
Mikunj 8526c6dd92 Fix up possible database write issue. 6 years ago
Mikunj f4e9bc655a Hooked up LokiP2pAPI with online stuff. 6 years ago
Mikunj 9b382de6da Added online indicator.
Disable selection in contacts.
6 years ago
sachaaaaa 0decbaee88
Merge pull request #161 from BeaudanBrown/p2p-pinging
P2P messaging
6 years ago
Beaudan 1ce63add68 Simplified the addContactP2pDetails logic cause it was silly 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
sachaaaaa 93015b151f
Merge pull request #160 from Mikunj/code-cleanup
Code cleanup
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
Mikunj ddbbb1a6f0 Refactor fetch. 6 years ago
sachaaaaa 9c98a1f654
Merge pull request #157 from BeaudanBrown/loki-address-broadcast
Loki address broadcast
6 years ago
Beaudan 6ba7fb20b8 Fixed UI blocking when creating conversation, more review comments 6 years ago
Beaudan e735b3ca41 Review comments, moved swarmNodes database stuff to just be in data.js 6 years ago
Beaudan 80fa4f866e Stale comment from review 6 years ago
Beaudan 4207d2d26b Removed accidental commented out line 6 years ago
Beaudan 9ff96a0250 Fixed tests and moved friend request status enum to new friends file 6 years ago
Beaudan 38ff70e2ec Fixed some little redundant stuff in the message and snode api 6 years ago
Beaudan d002d76d9f Fix unneccesary logic and copy paste trash 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
sachaaaaa 637ee12ade
Merge pull request #159 from sachaaaaa/fix_sending_loop
Fix sending loop that cycles indefinitely when offline
6 years ago
sachaaaaa 8f165da43d Fix sending loop that cycles indefinitely when offline 6 years ago
sachaaaaa 79a28fe993
Merge pull request #147 from BeaudanBrown/swarm-error-handling
Swarm error handling
6 years ago
Beaudan f2acde219a Review suggestion 6 years ago
Beaudan f6d167eda1 Split logic for getting swarm nodes from db, getting from lokinet and saving to db. Now tracking successfulRequests when making queries on top of the completedNodes list 6 years ago
Beaudan 9ece4e1fd8 Review comments 6 years ago