Merge branch 'feature/delete-redraft' into fork

This commit is contained in:
sk
2022-11-11 18:00:09 +01:00

View File

@@ -679,7 +679,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
if(!attachments.isEmpty()){ if(!attachments.isEmpty()){
req.mediaIds=attachments.stream().map(a->a.serverAttachment.id).collect(Collectors.toList()); req.mediaIds=attachments.stream().map(a->a.serverAttachment.id).collect(Collectors.toList());
} }
if(replyTo!=null || editingStatus.inReplyToId!=null){ if(replyTo!=null || (editingStatus != null && editingStatus.inReplyToId!=null)){
req.inReplyToId=editingStatus!=null ? editingStatus.inReplyToId : replyTo.id; req.inReplyToId=editingStatus!=null ? editingStatus.inReplyToId : replyTo.id;
} }
if(!pollOptions.isEmpty()){ if(!pollOptions.isEmpty()){