[Bug]: Drag and Drop doesn't work
Speedy native Discord client for macOS built in Swift
Brought to you by:
cryptoalgo
Originally created by: Sjmarf
When I drag a screenshot file into the Swiftcord window and let go, the image doesn't appear above the message bar. Uploading an image using the +
button works just fine, and dragging from Finder works too. This bug only happens when you drag a screenshot into the window.
0.6.0
Media (images, audio, video etc.)
No response
https://github.com/SwiftcordApp/Swiftcord/assets/78750526/e0350069-bd0f-4f44-93d2-4be9ba72c826
No response
Originally posted by: cryptoAlgorithm
I've noticed this bug while using Swiftcord myself, and after some debugging it turns out that the issue is way more difficult to fix than expected. Turns out, images directly dragged from the small floating image on the bottom right don't have the normal document content type in the clipboard (that Swiftcord expects), but some weird
ns-image
(or similar, I might've forgotten) format that seems more difficult to handle. I might rework some code to handle it, but it will be very difficult to support both drop item types.