(cherry picked from commit cd8ba055f97d112cdb29110086930067284bb754)
This commit is contained in:
Stephen Paul Weber 2024-06-16 19:20:12 -05:00 committed by Arne
parent f6f26beb60
commit 9cc974e964

View file

@ -1182,7 +1182,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
Drawable thumbnail = thumbnailer == null || cid == null ? null : thumbnailer.getThumbnail(cid);
if (thumbnail == null) thumbnail = fallbackImg;
if (thumbnail != null) {
quote.setSpan(new InlineImageSpan(thumbnail, cid.toString()), 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
quote.setSpan(new InlineImageSpan(thumbnail, cid == null ? null : cid.toString()), 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
}
}
quote.setSpan(new android.text.style.QuoteSpan(), 0, quote.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);