Move to quoted message on quote preview click.

This commit is contained in:
Sagar
2025-04-22 21:21:54 +05:30
committed by Cody Henthorne
parent 3fc386d4a3
commit 2bb94089f7
4 changed files with 24 additions and 14 deletions

View File

@@ -220,6 +220,9 @@ public class InputPanel extends ConstraintLayout
@NonNull QuoteModel.Type quoteType)
{
this.quoteView.setQuote(requestManager, id, author, body, false, attachments, null, quoteType);
if (listener != null) {
this.quoteView.setOnClickListener(v -> listener.onQuoteClicked(id, author.getId()));
}
int originalHeight = this.quoteView.getVisibility() == VISIBLE ? this.quoteView.getMeasuredHeight()
: 0;
@@ -817,6 +820,7 @@ public class InputPanel extends ConstraintLayout
void onStickerSuggestionSelected(@NonNull StickerRecord sticker);
void onQuoteChanged(long id, @NonNull RecipientId author);
void onQuoteCleared();
void onQuoteClicked(long quoteId, RecipientId authorId);
void onEnterEditMode();
void onExitEditMode();
void onQuickCameraToggleClicked();