mastodon-android icon indicating copy to clipboard operation
mastodon-android copied to clipboard

Bug: editing alt text before upload complete for multiple images breaks flow

Open alifeee opened this issue 1 year ago • 2 comments

keywords: alt text, multiple images, discard draft

on Mastodon v 2.9.3 (132), on, Android 14

What I expect to happen

I write a post. I upload multiple images, selecting multiple at once. Once the first is uploaded, I edit the alt text of it. After editing, I go back and edit the alt text of the other images before continuing to write my post.

What actually happens

After editing the alt text of the first image, pressing back or using the back button prompts for "Discard Draft? cancel/discard". Cancel does nothing. Discard appears to do nothing, but after pressing back and discard a second time you are sent back to the home screen, with no chance to see or recover the text of the post (as you "discarded the draft").

Workaround

This issue does not happen (i.e., everything is usable as normal) if you wait until all images are uploaded before editing any alt text.

More information

See these images. They show the process above

image 1
A - create post

Image

image 2 B - upload images (select nultiple) C - edit alt text (before all images have uploaded)

Image

image 3 D - press back after alt text written E - necessarily discard draft (sad)

Image

More Android informstion

Android version 14 Kernel version 5.10.198-android13-4-00050-g12f3388846c3-ab11920634 #1 Mon Jun 3 20:51:42 UTC 2024 Build number AP2A.240905.003.F1

Related issues

maybe https://github.com/mastodon/mastodon-android/issues/852

thank you all for your wonderful time spent making this wonderful app :]

alifeee avatar Dec 26 '24 08:12 alifeee

I also just encountered this exactly as described on Mastodon for Android v2.9.7. Thank you for this bug report!

mbonsma avatar Aug 05 '25 17:08 mbonsma

I also just encountered this exactly as described on Mastodon for Android v2.9.7. Thank you for this bug report!

if only I knew any Java I might try to fix it >.>

alifeee avatar Aug 06 '25 09:08 alifeee