Merge remote-tracking branch 'upstream/master'

This commit is contained in:
sk 2023-09-08 17:37:00 +02:00
commit 068d42175e
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ public class ComposeMediaViewController{
public void saveAltTextsBeforePublishing(Runnable onSuccess, Consumer<ErrorResponse> onError){ public void saveAltTextsBeforePublishing(Runnable onSuccess, Consumer<ErrorResponse> onError){
ArrayList<UpdateAttachment> updateAltTextRequests=new ArrayList<>(); ArrayList<UpdateAttachment> updateAltTextRequests=new ArrayList<>();
for(DraftMediaAttachment att:attachments){ for(DraftMediaAttachment att:attachments){
if(!att.descriptionSaved && att.serverAttachment.description == null){ if(!att.descriptionSaved && (fragment.editingStatus==null || !fragment.editingStatus.mediaAttachments.contains(att.serverAttachment))){
UpdateAttachment req=new UpdateAttachment(att.serverAttachment.id, att.description); UpdateAttachment req=new UpdateAttachment(att.serverAttachment.id, att.description);
req.setCallback(new Callback<>(){ req.setCallback(new Callback<>(){
@Override @Override