Fix message display and add voice note debugging

- Fix escaped backslashes in timestamp and sender name display
- Add comprehensive logging for voice note transmission pipeline
- Add peripheral write completion logging
- Track broadcast success/failure for central updates
- Log audio recorder creation and preparation steps
- Better diagnostics for troubleshooting voice note issues
This commit is contained in:
jack
2025-07-03 23:28:07 +02:00
parent 78ddb36db7
commit 8346ecd2a7
4 changed files with 23 additions and 6 deletions
+3 -3
View File
@@ -370,7 +370,7 @@ struct ContentView: View {
// Regular messages with tappable sender name
HStack(alignment: .top, spacing: 0) {
// Timestamp
Text("[\\(viewModel.formatTimestamp(message.timestamp))] ")
Text("[\(viewModel.formatTimestamp(message.timestamp))] ")
.font(.system(size: 12, design: .monospaced))
.foregroundColor(secondaryTextColor)
@@ -382,14 +382,14 @@ struct ContentView: View {
}
}) {
let senderColor = viewModel.getSenderColor(for: message, colorScheme: colorScheme)
Text("<\\(message.sender)>")
Text("<\(message.sender)>")
.font(.system(size: 12, weight: .medium, design: .monospaced))
.foregroundColor(senderColor)
}
.buttonStyle(.plain)
} else {
// Own messages not tappable
Text("<\\(message.sender)>")
Text("<\(message.sender)>")
.font(.system(size: 12, weight: .medium, design: .monospaced))
.foregroundColor(textColor)
}