Skip to content

Commit

Permalink
refactor: Remove unnecessary clearing of failed media IDs
Browse files Browse the repository at this point in the history
This was originally added in an attempt to clear an unexpected "failed
media upload" notification displayed after closing the editor. However,
it did not resolve that issue, it must originate from some other
location. Additionally, it would appears successful media uploads
already manage removing media IDs from the `mFailedMediaIds` collection.
  • Loading branch information
dcalhoun committed Dec 16, 2023
1 parent 47df150 commit c114528
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,6 @@ public void onConnectionStatusChange(boolean isConnected) {
getGutenbergContainerFragment().onConnectionStatusChange(isConnected);
if (BuildConfig.DEBUG && hasFailedMediaUploads()) {
mEditorFragmentListener.onMediaRetryAll(mFailedMediaIds);
mFailedMediaIds.clear();
}
}
}

0 comments on commit c114528

Please sign in to comment.