Skip to content

Conversation

AngeloStavrow
Copy link
Collaborator

Closes #171.

We set the createdDate property when a new local post is generate to sort the post list. When the publish() method is called, we update this property in the WFPost object that's created to send to the server. In this way, the local copy's createdDate property is only updated if the publish action succeeds (i.e., from the server response).

@AngeloStavrow AngeloStavrow added ios Anything specific to the iPhone/iPad app mac Anything specific to the Mac app labels Feb 8, 2021
@AngeloStavrow AngeloStavrow added this to the 1.0 milestone Feb 8, 2021
@AngeloStavrow AngeloStavrow requested a review from thebaer February 8, 2021 21:17
@AngeloStavrow AngeloStavrow self-assigned this Feb 8, 2021
Copy link
Member

@thebaer thebaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from a reading!

@AngeloStavrow AngeloStavrow merged commit c8707ff into main Feb 11, 2021
@AngeloStavrow AngeloStavrow deleted the update-createdDate-on-publish branch February 11, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios Anything specific to the iPhone/iPad app mac Anything specific to the Mac app
Development

Successfully merging this pull request may close these issues.

Publishing a new local post should update the post's creation date
2 participants