Conversation
b4e505d to
949671b
Compare
949671b to
c68cfa3
Compare
|
Tweaked one python test in the first commit and rebased. |
|
thanks a lot for taking care of the python test <3 |
|
The second commit needs a test |
I tried to add a test as a third commit, and it fails, Image is still converted to vCard when image with This test passes regardless of the second commit: This test fails regardless of the second commit: |
4694091 to
c68cfa3
Compare
|
I think we can merge this as is anyway, but it is unclear if the second commit fixes anything. |
|
hm, then maybe revert the second commit. i am totally fine with that. i did the second commit to have a more understandable flow, but seem to fail at that :) so it seems better to leave the old logic and iterate over when it becomes and issue |
|
wait, but we also do not want to convert from File to Video/Gif, so the second commit seems still needed |
Somehow the first test where I tried to send .png as File already passed even without the second commit. |
c68cfa3 to
2366326
Compare
I have pushed the test checking that .png File keeps viewtype as a separate commit. It works even without the third commit. |
2366326 to
3b1e11a
Compare
sending png as file is fixed in the first commit already. but the test if or if not vcard send as image keeps the image-viewtype, i am not even sure about that. but in practise, this is a non-issue, at least on mobile. still, i am wondering why the viewtype is converted and |
|
i commented to @Hocuri's considerations at #8167 (comment) , let's not rush on merging this PR |
|
k, this will cause too much noise just now, see linked issue for details. we can reconsider at a later point, but it is good to figure out what not to do :) thanks all for helping on figuring that out |
this PR simplifies heuristics when attaching a file or and image:
FiletoWebxdcorVcard, these types all may come from the file selectorImagetoAudio/Video/Gif, the types all may come from the gallery selectorFiletoImagein a subsequent PR, we should make sure, that incoming files are not concerted to images as well. we might need some flag for that (to know if an image is sent as image or as file). that way, the UI can render files all the same way, and show their size, name etc., making it also more clear that the image is sent as original file