remove comment
This commit is contained in:
@@ -110,7 +110,6 @@ extension NoteEditingSessionServer: MCSessionDelegate {
|
||||
func session(_ session: MCSession, didReceive data: Data, fromPeer peerID: MCPeerID) {
|
||||
guard let message = try? JSONDecoder().decode(NoteMessage.self, from: data) else { return }
|
||||
|
||||
// Broadcast to all other connected peers, preserving the original senderID
|
||||
let otherPeers = session.connectedPeers.filter { $0 != peerID }
|
||||
if !otherPeers.isEmpty {
|
||||
try? session.send(data, toPeers: otherPeers, with: .reliable)
|
||||
|
||||
Reference in New Issue
Block a user