clear quote if current draft has no quote (#3036)

This commit is contained in:
Asiel Díaz Benítez
2024-05-08 21:33:29 +02:00
committed by GitHub
parent 5dd1bb17ca
commit 026d9da70a
2 changed files with 7 additions and 1 deletions
@@ -744,7 +744,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
DcMsg quote = draft.getQuotedMsg();
if (quote != null) {
if (quote == null) {
inputPanel.clearQuoteWithoutAnimation();
} else {
handleReplyMessage(quote);
}
@@ -151,6 +151,10 @@ public class InputPanel extends ConstraintLayout
quoteAnimator.start();
}
public void clearQuoteWithoutAnimation() {
quoteView.dismiss();
}
public void clearQuote() {
if (quoteAnimator != null) {
quoteAnimator.cancel();