diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/GalleryBlockProcessor.java b/WordPress/src/main/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/GalleryBlockProcessor.java index 81fb0f171377..ebfaea3cedab 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/GalleryBlockProcessor.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/GalleryBlockProcessor.java @@ -81,11 +81,7 @@ public GalleryBlockProcessor(String localId, MediaFile mediaFile, String siteUrl } @Override boolean processBlockJsonAttributes(JsonObject jsonAttributes) { - // The presence of `imageCount` means we have the new format, so return early to defer to recursive processing - if (jsonAttributes.has("imageCount")) { - return false; - } - + // The new format does not have an `ids` attributes, so returning false here will defer to recursive processing JsonArray ids = jsonAttributes.getAsJsonArray("ids"); if (ids == null || ids.isJsonNull()) { return false; diff --git a/WordPress/src/test/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/TestContent.kt b/WordPress/src/test/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/TestContent.kt index 6ad93f7ee72f..d77a9a49377f 100644 --- a/WordPress/src/test/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/TestContent.kt +++ b/WordPress/src/test/java/org/wordpress/android/ui/posts/mediauploadcompletionprocessors/TestContent.kt @@ -284,7 +284,7 @@ object TestContent { """ - const val oldRefactoredGalleryBlock = """ + const val oldRefactoredGalleryBlock = """ @@ -312,7 +312,7 @@ $oldRefactoredGalleryBlockInnerBlocks """ - const val newRefactoredGalleryBlock = """ + const val newRefactoredGalleryBlock = """