mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
clear quote if current draft has no quote (#3036)
This commit is contained in:
committed by
GitHub
parent
5dd1bb17ca
commit
026d9da70a
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user