Add tap-to-PM and favorite features

- Make sender names tappable in messages to start private chat
- Add star button in private chat header to favorite/unfavorite peers
- Refactor message view to separate timestamp, sender, and content
- Add helper methods for formatting different parts of messages
- Own sender name is not tappable (only other users)
- Voice notes remain tappable to play/pause
This commit is contained in:
jack
2025-07-03 23:24:30 +02:00
parent d6ae19e11e
commit 78ddb36db7
3 changed files with 157 additions and 17 deletions
+5 -1
View File
@@ -999,7 +999,11 @@ extension BluetoothMeshService: CBPeripheralDelegate {
}
func peripheral(_ peripheral: CBPeripheral, didWriteValueFor characteristic: CBCharacteristic, error: Error?) {
// Handle write completion if needed
if let error = error {
print("[PERIPHERAL] Write failed: \(error)")
} else {
print("[PERIPHERAL] Write completed successfully")
}
}
func peripheral(_ peripheral: CBPeripheral, didModifyServices invalidatedServices: [CBService]) {