Fix crash when trying to view 1:1 conversation with reaction quote.

This commit is contained in:
Alex Hart
2022-04-14 10:27:30 -03:00
committed by Greyson Parrelli
parent 9a097d113d
commit 17b8e086c9
5 changed files with 39 additions and 14 deletions

View File

@@ -1429,9 +1429,15 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
}
//noinspection ConstantConditions
CharSequence body = isStoryReaction(current) ? current.getBody() : quote.getDisplayText();
//noinspection ConstantConditions
quoteView.setQuote(glideRequests, quote.getId(), Recipient.live(quote.getAuthor()).get(), body, quote.isOriginalMissing(), quote.getAttachment(), chatColors, isStoryReaction(current));
quoteView.setQuote(glideRequests,
quote.getId(),
Recipient.live(quote.getAuthor()).get(),
quote.getDisplayText(),
quote.isOriginalMissing(),
quote.getAttachment(),
chatColors,
isStoryReaction(current) ? current.getBody() : null);
quoteView.setVisibility(View.VISIBLE);
quoteView.setTextSize(TypedValue.COMPLEX_UNIT_SP, SignalStore.settings().getMessageFontSize());
quoteView.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;