photos icon indicating copy to clipboard operation
photos copied to clipboard

Expose pin queue to framework

Open sanderpick opened this issue 5 years ago • 3 comments

The current logic around what to send P2P and what to offload to the native background uploader queue is feeling unwieldy. It's going to get even more so.

Proposal: On mobile, instead of adding to the P2P queue, the framework simply adds cafe requests to the native upload queue.

sanderpick avatar Dec 14 '18 22:12 sanderpick

This may actually be required to get back to a full working state. Feeling skeptical of relying on the P2P queue for even tiny messages, just because you really want to say, type a message and close the phone... even with a poor connection. We're really setup for total offline first... just need a way to add all kind of little tiny messages (blocks, file indexes, dag node indexes) to the native queue... CLI can stay the same, but really not making sense on mobile.

sanderpick avatar Dec 14 '18 23:12 sanderpick

I can wrap the other cafe and thread messages requests with HTTP pretty fast (a day). That would mean we could still, for example, try to send direct P2P, but fall back to an OS specific cafe and thread queue (p2p w/ CLI, background service w/ mobile)

sanderpick avatar Dec 14 '18 23:12 sanderpick

You still feeling like this is a thing to do @sanderpick?

asutula avatar Jan 06 '19 00:01 asutula