Remove 'preparing to share …' system message; send shared content immediately

This commit is contained in:
jack
2025-08-25 17:53:25 +02:00
parent d946c01bfc
commit 6f4da62e4e
+1 -13
View File
@@ -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),