Skip to content

Open the editor with the latest version of an edited post - #2547

Open
meet4731 wants to merge 1 commit into
Dimillian:mainfrom
meet4731:fix/2546-edit-latest-post
Open

meet4731 wants to merge 1 commit into
Dimillian:mainfrom
meet4731:fix/2546-edit-latest-post

Conversation

@meet4731

Copy link
Copy Markdown
Contributor

Fixes #2546

Editing a post a second time from a timeline or profile list opened the editor with the text from before the first edit, so saving again lost that edit.

The row text is read from StatusDataController, which is updated when a post is edited, but the Edit action used the status stored in the row view model, which is not. The data controller now keeps the latest status and the Edit action uses it.

ReblogStatus.asStatus is the existing conversion moved out of Status.reblogAsAsStatus, with no behaviour change.

Tested on iPhone 17 Pro simulator, iOS 27.0: edit a post from the profile list, save, open Edit again from the same row. The editor now shows the saved text. Editing from the post detail screen is unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Cache for posts editions not updated when editing several times the same post.

1 participant