(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 89eeef429b
commit 4e2fe5dd6f

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);