NicolasConstant / sengi

Mastodon & Pleroma Multi-account Desktop Client
https://nicolasconstant.github.io/sengi/
GNU Affero General Public License v3.0
524 stars 34 forks source link

Attachment gets lost when editing post / edited attachments do not get updated #563

Closed crawlserv closed 1 year ago

crawlserv commented 1 year ago

Hi!

Thanks for adding the editing feature!

Unfortunately, it seems buggy when applied to posts that contain attachments such as pictures: – when I try to edit a post with picture that I haven't posted with Sengi (or not in the current session), the picture disappears in the drafting/editing stage – when I edit a post and delete the picture (for example, due to the above bug), only the text gets updated, the picture is still being shown in the column (not when I click on the post) until Sengi gets restarted – when I edit again and re-attach the picture, it is shown as if attached twice to the post, although in reality it is there only once

after clicking "edit", the picture (red rectangle) of a post not written in the current session is gone: Screenshot from 2023-02-17 21-10-07

after clicking "Edit!" it is still being shown despite that it got lost

after adding it again, it is shown twice in the column (not when clicking on the post): Screenshot from 2023-02-17 21-10-33

in reality, it is now attached to the post once (as shown in the web interface): Screenshot from 2023-02-17 21-19-37