mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 17:25:21 +00:00
nice
This commit is contained in:
@@ -107,19 +107,19 @@ class BluetoothConnectionManager(
|
||||
// Start power manager
|
||||
powerManager.start()
|
||||
|
||||
// // Start server manager
|
||||
// if (!serverManager.start()) {
|
||||
// Log.e(TAG, "Failed to start server manager")
|
||||
// this@BluetoothConnectionManager.isActive = false
|
||||
// return@launch
|
||||
// }
|
||||
// Start server manager
|
||||
if (!serverManager.start()) {
|
||||
Log.e(TAG, "Failed to start server manager")
|
||||
this@BluetoothConnectionManager.isActive = false
|
||||
return@launch
|
||||
}
|
||||
|
||||
// // Start client manager
|
||||
// if (!clientManager.start()) {
|
||||
// Log.e(TAG, "Failed to start client manager")
|
||||
// this@BluetoothConnectionManager.isActive = false
|
||||
// return@launch
|
||||
// }
|
||||
// Start client manager
|
||||
if (!clientManager.start()) {
|
||||
Log.e(TAG, "Failed to start client manager")
|
||||
this@BluetoothConnectionManager.isActive = false
|
||||
return@launch
|
||||
}
|
||||
|
||||
Log.i(TAG, "Bluetooth services started successfully")
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ class CashuService {
|
||||
memo = sendMemo,
|
||||
amountSplitTarget = FfiSplitTarget.DEFAULT,
|
||||
sendKind = FfiSendKind.OnlineExact,
|
||||
includeFee = true,
|
||||
includeFee = false,
|
||||
metadata = emptyMap(),
|
||||
maxProofs = null
|
||||
)
|
||||
@@ -288,7 +288,7 @@ class CashuService {
|
||||
|
||||
Log.d(TAG, "FFI amount: ${ffiAmount}")
|
||||
|
||||
Result.success(amount)
|
||||
Result.success(ffiAmount.value.toLong())
|
||||
|
||||
} catch (e: FfiException) {
|
||||
Log.e(TAG, "CDK FFI error receiving token: ${e.message}")
|
||||
|
||||
Reference in New Issue
Block a user