-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share files in messages #14
Comments
I think it would be really easy to add a message type |
i was thinking about this for some reason and wanted to chime in. i think that keeping binary blobs outside of the chat database is important. at the same time i think it would be very interesting to figure out a good solution for how we can support loading image-based avatars and custom emojis, as well as custom blocklists per cabal-club/cabal-cli#41 or even settings/styles. ssb separates it nicely with its blobs store, maybe we can use a set of hypercores for our blob stores somehow? do we have one hypercore per so the blob types could be
it's a bit off, but i wanted to share my thoughts while they were floating around 🌊 ⛵️ |
hyperdb's neat trick is that each user has two feeds:
The content feed stores all of the binary blobs, but default replication only syncs the message feeds of users. This way you can have entries in your message feed that reference an entry in someone's content feed (e.g. SSB's trick is to automatically share blobs within a peer radius (ask all peers to store this blob for them). Some can/will say no, but it generally helps seed that blob around the network. I like this approach because it allows content to be addressed by hash instead of owner, meaning the same data from multiple authors won't be duplicated. It also decouples us from hypercore, which seems like overkill for moving binary blobs around. |
@nikolaiwarner any update on the file sharing branch? how can we help? |
It would be excellent to be able to drag and drop, copy and paste, or select from a dialog files that could be sent to the channel connected to messages.
I'm not sure where cabal core stands at the moment with implementing files connected to messages but it would be super useful.
The text was updated successfully, but these errors were encountered: