-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Implemented media/photo share functionality #3284
Conversation
@AndyScherzinger @mahibi Ptal and let me know the changes |
@Smarshal21 did you or can you test this for images you opened first by clicking on them (triggers a download of the original image) and for not clicking on the image first but going straight for the long press (only the preview image available) since I expect you'd be sharing a different file then or it might not be working on both scenarios. |
Yeah i tested them for images and it works completely fine |
it doesn't work when the file is not downloaded. So it only works for images that were opened (downloaded) before. To test:
So there should be checked if the file is already downloaded and if it's not, the download should be triggered. When download is finished, the share method should be triggered. |
Sure, will take a look at it |
@mahibi i have changed , could you please let me know if the error is still occurring as i am getting some error in joining a chat from another user (some sort of issue). |
the error is still occurring.
so for sharing the logic should be similar. If the file exists, just continue the the sharing code. If it doesn't exist yet, start the download. When download is finished, come back the share logic.
There should be added a condition to check what was downloaded and then continue with the voice playback or the sharing code. Just let me know if you have more questions.
|
@mahibi @AndyScherzinger ptal i have updated and it works for me |
reviewing.. i will commit some suggested changes soon |
When sharing a file by context menu that is not downloaded yet, do not open it after download but just share it. This is done by 'openWhenDownloaded' variable in chatMessage. Pass a method to downloadFileToCache, so it's more flexible what to do when download finished. Add some minor changes
i commited some suggested changes, see commit message of abb3389 |
is there anything to be implemented ? |
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
Resolves #3276
Successfully Implemented media/photo share functionality on long-pressing a photograph that was shared in a Talk conversation.
This would offer a simpler workflow: no need to expand a photograph full-screen just to share it.
As there is arguably plenty of screen real-estate to accommodate another function in the long-press menu.
🖼️ Screenshots
🏚️ Before
🏡 After
🏁 Checklist
/backport to stable-xx.x