Commit Graph

23 Commits (9beea2cbd3b0cb4857a750a03ba52e6d69789662)

Author SHA1 Message Date
Beaudan Brown 9beea2cbd3 Enforce curlies completely and lint with new settings 6 years ago
Mikunj bc6586e5ce Removed duplicated function. 6 years ago
Mikunj f77b67d358 Updated tests.
Fix some minor logic.
6 years ago
Mikunj 986d34bbd9 linting 6 years ago
Mikunj d4de4b13dd Fix incorrect import. 6 years ago
Mikunj b4390a8c95 Updated pinging logic. 6 years ago
Beaudan 08dee14802 Review comment 6 years ago
Beaudan 0516e69ff7 Fix tests 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 b00a0cb699 Rename isOnline to isPing for clarity, and reduce the ttl for online broadcast messages to 1 min 6 years ago
Beaudan cde7bbf3c3 Removed forceP2p as argument for the pingContact event and enforced it on the other side 6 years ago
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
Beaudan cd79d5aca5 Fixed and simplified some logic for the handling of loki address messages 6 years ago
Mikunj 4518e95619 Linting 6 years ago
Mikunj f4e9bc655a Hooked up LokiP2pAPI with online stuff. 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
Mikunj 3c07d99a89 Fix variable names.
Fix module export to be more consistent.
6 years ago
Beaudan 4207d2d26b Removed accidental commented out line 6 years ago
Beaudan d002d76d9f Fix unneccesary logic and copy paste trash 6 years ago
Beaudan 07076c27ae Moved friend status to window, added start of p2p api stuff 6 years ago