diff --git a/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java b/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java index d21984a2502b..c0c0755d2cb2 100644 --- a/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java +++ b/libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/GutenbergEditorFragment.java @@ -796,7 +796,7 @@ public void appendMediaFiles(Map mediaList) { for (Map.Entry mediaEntry : mediaList.entrySet()) { int mediaId = isNetworkUrl ? Integer.valueOf(mediaEntry.getValue().getMediaId()) - : mediaEntry.getValue().getId(); + : -mediaEntry.getValue().getId(); // negate local id here String url = isNetworkUrl ? mediaEntry.getKey() : "file://" + mediaEntry.getKey(); rnMediaList.add(createRNMediaUsingMimeType(mediaId, url, mediaEntry.getValue().getMimeType())); } diff --git a/libs/gutenberg-mobile b/libs/gutenberg-mobile index 40171a1cf7f3..178e94cd3327 160000 --- a/libs/gutenberg-mobile +++ b/libs/gutenberg-mobile @@ -1 +1 @@ -Subproject commit 40171a1cf7f38685d7e625bbd3b6044b7484734c +Subproject commit 178e94cd33279d5e3475fe11b5ad1b250d336abd