mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Fix crash when trying to view 1:1 conversation with reaction quote.
This commit is contained in:
committed by
Greyson Parrelli
parent
9a097d113d
commit
17b8e086c9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user