mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 23:05:21 +00:00
Plumtree sync (#393)
* wip plumtree * sync works * fix logging * ttl to 0 * fix send packet to one peer * spec * wip GCS instead of bloom * remove bloom filter remainders * clean * prune old announcements * remove announcements from sync after LEAVE * sync after 1 second * pruning * track own announcement and prune messages without announcements * fix pruning * getGcsMaxFilterBytes default value 400 bytes * parameters
This commit is contained in:
@@ -262,6 +262,8 @@ class PeerManager {
|
||||
fingerprintManager.removePeer(peerID)
|
||||
|
||||
if (notifyDelegate && removed != null) {
|
||||
// Notify specific removal event then list update
|
||||
try { delegate?.onPeerRemoved(peerID) } catch (_: Exception) {}
|
||||
notifyPeerListUpdate()
|
||||
}
|
||||
}
|
||||
@@ -529,4 +531,5 @@ class PeerManager {
|
||||
*/
|
||||
interface PeerManagerDelegate {
|
||||
fun onPeerListUpdated(peerIDs: List<String>)
|
||||
fun onPeerRemoved(peerID: String)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user