From 30f548eb73ed49e81a4781faf6eeee4026fe3605 Mon Sep 17 00:00:00 2001 From: jack Date: Mon, 7 Jul 2025 00:04:11 +0200 Subject: [PATCH] Fix Swift compile error: add break statements to empty switch cases --- bitchat/ViewModels/ChatViewModel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitchat/ViewModels/ChatViewModel.swift b/bitchat/ViewModels/ChatViewModel.swift index f5f2af62..3b0d307b 100644 --- a/bitchat/ViewModels/ChatViewModel.swift +++ b/bitchat/ViewModels/ChatViewModel.swift @@ -1038,8 +1038,10 @@ class ChatViewModel: ObservableObject { readReceiptsSent += 1 case .read: // Already read, no need to send another receipt + break default: // Message not yet delivered, can't mark as read + break } } else { // No delivery status - this might be an older message