fix re-drafting replies

This commit is contained in:
sk 2022-11-11 17:17:52 +01:00
parent 5742493185
commit 977f3d0635
1 changed files with 2 additions and 2 deletions

View File

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