From 977f3d0635bd401611e6a650354656e238dc9389 Mon Sep 17 00:00:00 2001 From: sk Date: Fri, 11 Nov 2022 17:17:52 +0100 Subject: [PATCH] fix re-drafting replies --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 170deb827..59772a74b 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -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();