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:
Taksh 2026-08-15 10:17:04 +05:30
parent f682448e16
commit 2d24d9a401
2 changed files with 2 additions and 4 deletions

View File

@ -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())
)
},

View File

@ -65,8 +65,7 @@ class MeshCore(
withAuthenticatedSession = encryptionService::withAuthenticatedSession,
store = authenticatedPeerStateStore,
localStateProvider = {
AuthenticatedPeerState(
PeerCapabilities.LOCAL_SUPPORTED,
AuthenticatedPeerState.local(
requireNotNull(encryptionService.getSigningPublicKey())
)
},