Open tedder opened 6 years ago
@shadycuz I don't have time to review this right now, any chance you do?
Looks like a really nice upload class. Lots of flexibility for the future. @tedder Let me test this, and fleshout what the UI should look like in the settings tab. I'll push any changes to your branch.
Thanks, Levi
Thanks. I'm still iterating and testing, I'll push my fixes now.
@tedder oh yes please do what you do ;)
I am torn about the new function for sending a text with image. To me the body of the text stays the same and the image is optional. Which is why I used the one function with optional url.
Your new function is cleaner but maybe unnecessary? Maybe it would help to move the message formatting to it's own function and pass the body into the function?
For example we allow messages to go to more than one number, so maybe we have a function that produces a dict where the keys are numbers and the values are the formatted txt message.
{
"+1-555-555-5555" : "This would be the text sent"
}
Doesn't even look like multiple numbers is working, I probably broke it 👎
I'm just thinking out loud.
What I was trying to do with the second send() function was to centralize the "try with image, then try without image" stuff. It should work for all cases now, right?
I haven't used the multiple phone stuff. Once I'm sure it's actually working I'll look at that. Message formatting elsewhere is a decent idea.
I thought it worked for all cases before?
@shadycuz I fixed the 'multiple phone numbers' thing.
I've been using this branch constantly since putting in the PR, works well with S3.
I'm going to be setting up a few Pis in the next week and want this feature- can you merge or should I just fork the plugin?
We want your continued development in here. Let me get some coffee and look it over again and then I'll merge.
@tedder I'll get this merged this weekend.
@shadycuz can't help notice that you indicated you were going to merge this but didn't; is it ready to be merged?
@taxilian I will try it again soon.
Since uploads.im was going away I wanted to store my images on S3. I'm sure that's not what most people want to do, so I abstracted it a little. This strategy would be a good way to go for sending messages (eg twilio, gvoice).
Marking as a WIP so you all can see it, and because it's a WIP. I'm still testing, and I need to add options to the config panel.