Verified Commit 5f768f73 authored by Gordon Martin's avatar Gordon Martin Committed by staltz

Only show bluetooth peers that are available for scuttlebutt gossip

parent dabc81bf
This diff is collapsed.
......@@ -124,7 +124,7 @@ export = {
claimingInvites: 'source',
},
bluetooth: {
nearbyDevices: 'source',
nearbyScuttlebuttDevices: 'source',
makeDeviceDiscoverable: 'async',
isEnabled: 'async',
},
......
......@@ -3205,8 +3205,9 @@
}
},
"multiserver-bluetooth": {
"version": "github:happy0/multiserver-bluetooth#a44ac1c3d7673cfdaae297f79a3d3e5ee420719e",
"from": "github:happy0/multiserver-bluetooth#a44ac1c3d7673cfdaae297f79a3d3e5ee420719e"
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/multiserver-bluetooth/-/multiserver-bluetooth-1.0.6.tgz",
"integrity": "sha512-r0cHDpXnVrQh+IZgc3Grd8BEkjdn98F3LTjhLS+JysVveuycyWQSe/n2DKilqI2zKegKFSMubfQ4whGMUzBnhw=="
},
"multiserver-dht": {
"version": "4.0.0",
......@@ -5298,10 +5299,11 @@
}
},
"ssb-bluetooth": {
"version": "github:happy0/ssb-bluetooth#040d5336d13de0806cee0cd52feefef762388361",
"from": "github:happy0/ssb-bluetooth#040d5336d13de0806cee0cd52feefef762388361",
"version": "1.1.10",
"resolved": "https://registry.npmjs.org/ssb-bluetooth/-/ssb-bluetooth-1.1.10.tgz",
"integrity": "sha512-EksVct0HQ/j1Fu+upPKq/MY+n3J+Ving93vTi106kRVisyj+hEL0bGFcGMW+x+ItyMufY/6Ly5/doU1Nwgumng==",
"requires": {
"multiserver-bluetooth": "github:happy0/multiserver-bluetooth#a44ac1c3d7673cfdaae297f79a3d3e5ee420719e",
"multiserver-bluetooth": "1.0.6",
"pull-pushable": "^2.2.0"
}
},
......@@ -5475,12 +5477,14 @@
}
},
"ssb-mobile-bluetooth-manager": {
"version": "github:happy0/ssb-mobile-bluetooth-manager#3f8075b040b4adbefdd1c197604bfcc17d90d1d6",
"from": "github:happy0/ssb-mobile-bluetooth-manager#3f8075b040b4adbefdd1c197604bfcc17d90d1d6",
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/ssb-mobile-bluetooth-manager/-/ssb-mobile-bluetooth-manager-2.0.12.tgz",
"integrity": "sha512-jVDgom+x/HlGqhLqIsPyph6pDGntVomtRES+pPpleBPBJwicC2l6zXMqwZNx0wko1gnbjBcAgnnsg5DdC0BaxQ==",
"requires": {
"pull-json-doubleline": "^2.0.0",
"pull-stream": "^3.6.9",
"stream-to-pull-stream": "^1.7.2"
"stream-to-pull-stream": "^1.7.2",
"uuid": "^3.3.2"
}
},
"ssb-msgs": {
......@@ -6262,6 +6266,11 @@
}
}
},
"uuid": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
},
"varint": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/varint/-/varint-3.0.1.tgz",
......
......@@ -24,14 +24,14 @@
"ssb-config": "2.3.7",
"ssb-about": "2.0.0",
"ssb-backlinks": "0.7.3",
"ssb-bluetooth": "happy0/ssb-bluetooth#040d5336d13de0806cee0cd52feefef762388361",
"ssb-bluetooth": "1.1.10",
"ssb-blobs": "1.1.7",
"ssb-contacts": "0.0.2",
"ssb-dht-invite": "1.0.0",
"ssb-ebt": "5.2.7",
"ssb-friends": "3.1.9",
"ssb-keys": "7.1.3",
"ssb-mobile-bluetooth-manager": "happy0/ssb-mobile-bluetooth-manager#3f8075b040b4adbefdd1c197604bfcc17d90d1d6",
"ssb-mobile-bluetooth-manager": "2.0.12",
"ssb-private": "0.2.3",
"ssb-query": "2.3.0",
"ssb-serve-blobs": "2.0.0",
......
......@@ -307,7 +307,7 @@ const create = (api: any) => {
return sbot.about.socialValueStream(opts);
}),
nearbyBluetoothPeers: rec.source((refreshInterval: number) => {
return sbot.bluetooth.nearbyDevices(refreshInterval);
return sbot.bluetooth.nearbyScuttlebuttDevices(refreshInterval);
}),
},
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment