From 6f4da62e4eec40e396f0a271d586c3e9121014d6 Mon Sep 17 00:00:00 2001 From: jack Date: Mon, 25 Aug 2025 17:53:25 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20'preparing=20to=20share=20=E2=80=A6'?= =?UTF-8?q?=20system=20message;=20send=20shared=20content=20immediately?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitchat/BitchatApp.swift | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/bitchat/BitchatApp.swift b/bitchat/BitchatApp.swift index cf156194..6650ee40 100644 --- a/bitchat/BitchatApp.swift +++ b/bitchat/BitchatApp.swift @@ -109,20 +109,8 @@ struct BitchatApp: App { userDefaults.removeObject(forKey: "sharedContentDate") userDefaults.synchronize() - // Show notification about shared content + // Send the shared content immediately on the main queue DispatchQueue.main.async { - // Add system message about sharing - let systemMessage = BitchatMessage( - sender: "system", - content: "preparing to share \(contentType)...", - timestamp: Date(), - isRelay: false - ) - self.chatViewModel.messages.append(systemMessage) - } - - // Send the shared content after a short delay - DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) { if contentType == "url" { // Try to parse as JSON first if let data = sharedContent.data(using: .utf8),