Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,9 @@ private void handleFetchedPostList(FetchPostListResponsePayload payload) {
Map<Long, PostModel> posts = getPostsByRemotePostIds(postIds, site);
for (PostListItem item : payload.postListItems) {
PostModel post = posts.get(item.remotePostId);
// Dispatch a fetch action for the posts that are changed
if (post != null && !post.getLastModified().equals(item.lastModified)) {
// Dispatch a fetch action for the posts that are changed, but not for posts with local changes
// as we'd otherwise overwrite and lose these local changes forever
if (post != null && !post.getLastModified().equals(item.lastModified) && !post.isLocallyChanged()) {
mDispatcher.dispatch(PostActionBuilder.newFetchPostAction(new RemotePostPayload(post, site)));
}
}
Expand Down