// ChatMessage.swift
import Foundation
public struct ChatMessage: Identifiable, Codable {
public var id: String
public let conversationID: String // peerID of the other participant
public let senderID: String
public let text: String
public let timestamp: Date
public var delivered: Bool
public var isLocal: Bool {
senderID == IdentityManager.shared.localPeerID
}
}