mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-09-19 04:59:59 +00:00
Advertise the ceiling from both mesh services
Both built the local peer state inline and identically; they now share the factory, which is also what makes the advertisement testable without standing up a mesh service.
This commit is contained in:
parent
f682448e16
commit
2d24d9a401
@ -64,8 +64,7 @@ class BluetoothMeshService(private val context: Context) : TransportBridgeServic
|
||||
withAuthenticatedSession = encryptionService::withAuthenticatedSession,
|
||||
store = authenticatedPeerStateStore,
|
||||
localStateProvider = {
|
||||
AuthenticatedPeerState(
|
||||
PeerCapabilities.LOCAL_SUPPORTED,
|
||||
AuthenticatedPeerState.local(
|
||||
requireNotNull(encryptionService.getSigningPublicKey())
|
||||
)
|
||||
},
|
||||
|
||||
@ -65,8 +65,7 @@ class MeshCore(
|
||||
withAuthenticatedSession = encryptionService::withAuthenticatedSession,
|
||||
store = authenticatedPeerStateStore,
|
||||
localStateProvider = {
|
||||
AuthenticatedPeerState(
|
||||
PeerCapabilities.LOCAL_SUPPORTED,
|
||||
AuthenticatedPeerState.local(
|
||||
requireNotNull(encryptionService.getSigningPublicKey())
|
||||
)
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user