Commit Graph

143 Commits

Author SHA1 Message Date
Niels Andriesse 97d1c16164 Clean up sendSignalMessage(_:to:with:) signature 2019-05-27 12:54:59 +10:00
Niels Andriesse e7866e7a7a Merge branch 'dev' into p2p 2019-05-27 12:50:58 +10:00
Niels Andriesse 728a148980 Improve performance 2019-05-27 12:50:30 +10:00
Niels Andriesse 5351961af7 Clean 2019-05-27 12:26:37 +10:00
Niels Andriesse ca713f6476 Clean up getMessages() signature 2019-05-27 10:27:49 +10:00
Mikunj 482721a2c2 Merge branch 'dev' into p2p 2019-05-27 10:24:35 +10:00
Niels Andriesse a440a08a04 Implement retrying 2019-05-27 09:58:34 +10:00
Mikunj 58ead70eb3 Minor fix. 2019-05-27 09:54:20 +10:00
Mikunj 88afca30c6 Moved P2P logic to LokiP2PManager. 2019-05-27 09:50:37 +10:00
Mikunj af6a969653 Very iffy ping logic - May not work 2019-05-24 16:26:58 +10:00
Mikunj 455c8c520b More pinging logic 2019-05-24 16:07:00 +10:00
Mikunj 7f679ba5ed Added P2P pinging logic. 2019-05-24 15:20:49 +10:00
Mikunj 20f0b23951 Refactoring. 2019-05-24 13:45:38 +10:00
Niels Andriesse 1fafa550f0 Fix message sending error handling 2019-05-24 11:24:27 +10:00
Mikunj 05737cde53 Merge commit 'b20ac237b23e9582cead41693428c346f2bc95cb' into p2p 2019-05-24 09:37:07 +10:00
Mikunj b3ef8af476 Fix PoW Calculation. 2019-05-24 09:33:41 +10:00
Niels Andriesse fddee1db3d Fix non-millisecond value 2019-05-24 09:11:16 +10:00
Mikunj 0566d94105 Merge commit '07fefc168fcadb5e96aa3a076a27b6756cf91b6c' into p2p 2019-05-23 15:31:27 +10:00
Mikunj 4412ec8f15 Made LKAddressMessage a subclass of LKEphemeralMessage.
This is because we can't send a body with a nil message :(
2019-05-23 15:01:01 +10:00
Niels Andriesse 9927fdb620 Fix build 2019-05-23 14:38:59 +10:00
Mikunj bf1c2f4327 Send to p2p server first before falling back to storage server. 2019-05-23 13:39:31 +10:00
Niels Andriesse 5af0ad03b9 Persist swarm cache & make access modifiers explicit 2019-05-23 12:28:35 +10:00
Mikunj 2694699e4e Added LKAddressMessage.
Hooked up p2p api.
2019-05-23 12:17:40 +10:00
Niels Andriesse 8a9da51943 Implement swarm specific error handling 2019-05-23 09:44:46 +10:00
Niels Andriesse 1796fd8e60 Prepare for P2P logic integration 2019-05-22 16:04:51 +10:00
Mikunj 5a1272c23b Merge branch 'dev' into p2p 2019-05-22 12:42:00 +10:00
Niels Andriesse d5b176d831 Mock swarms for now 2019-05-22 12:28:19 +10:00
Niels Andriesse e1d2c48c9b Integrate swarm changes into message sending code 2019-05-22 12:24:20 +10:00
Mikunj fc702e2420 Merge commit 'e5463e545ac6be6c13b9d3cf65d9105ad475b4dc' into p2p 2019-05-22 12:06:30 +10:00
Niels Andriesse adcb469b53 Integrate swarm changes into message receiving code 2019-05-22 12:06:02 +10:00
Niels Andriesse e5463e545a Filter duplicate messages & make parsing strategy consistent 2019-05-22 11:32:32 +10:00
Mikunj 865bb1932f Added LokiP2PMessageHandler.
Moved wrapping and unwrapping of proto envelopes to LokiMessageWrapper.
2019-05-22 11:31:07 +10:00
Niels Andriesse f3e2737043 Fix inconsistent function signatures 2019-05-22 09:36:35 +10:00
Niels Andriesse b1e18de5e2 Implement swarm parsing 2019-05-21 16:40:31 +10:00
Niels Andriesse dc103c7bd6 Refactor 2019-05-21 15:21:51 +10:00
Mikunj 472113bccb Merge branch 'last-message-hash' into swarms 2019-05-21 14:45:34 +10:00
Mikunj a12d36fb9e Set last hash in params. 2019-05-21 13:48:42 +10:00
Niels Andriesse 59de49641e Implement swarm caching 2019-05-21 13:44:46 +10:00
Mikunj 3dcb859316 Merge commit '9d7cec90e1012a5273f33cd2710f5f5b3169f783' into last-message-hash 2019-05-21 13:31:29 +10:00
Niels Andriesse 9d7cec90e1 WIP 2019-05-21 13:26:51 +10:00
Mikunj 50b41c63af Added storing of last message hash. 2019-05-21 13:26:10 +10:00
Niels Andriesse 1c73cf5114 Re-order files 2019-05-21 11:40:29 +10:00
Niels Andriesse 4da8d33932 Clean 2019-05-10 13:38:00 +10:00
Renamed from SignalServiceKit/src/Loki/Api/LokiAPI.swift (Browse further)